drbd: check MODULE for THIS_MODULE
authorCong Wang <xiyou.wangcong@gmail.com>
Tue, 3 Apr 2012 06:13:36 +0000 (14:13 +0800)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 May 2012 10:00:54 +0000 (12:00 +0200)
commitbc4854bc91c9a7f117437215cd8b16a0a5671d93
tree569927c0035f099665a4e76412cc090d96ba157b
parentf6d0a8dbfdce4b4f28fcb0f689c373874646f87c
drbd: check MODULE for THIS_MODULE

THIS_MODULE is NULL only when drbd is compiled as built-in,
so the #ifdef CONFIG_MODULES should be #ifdef MODULE instead.

This fixes the warning:

drivers/block/drbd/drbd_main.c: In function ‘drbd_buildtag’:
drivers/block/drbd/drbd_main.c:4187:24: warning: the comparison will always evaluate as ‘true’ for the address of ‘__this_module’ will never be NULL [-Waddress]

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_main.c