Avoid compiler warning about non-bool in logical expression
Avoid a compiler warning:
drbd_receiver.c:1693:12: warning: logical ‘and’ applied to non-boolean constant [-Wlogical-op]
drbd/drbd_receiver.c +1 -1
@@ -1690,7 +1690,7 @@ next_bio: bio->bi_next =NULL ;/* strip off REQ_UNPLUG unless it is the last bio */ -if (bios &&DRBD_REQ_UNPLUG ) +if (bios && (DRBD_REQ_UNPLUG !=0 )) bio->bi_opf &= ~DRBD_REQ_UNPLUG ;drbd_generic_make_request (device, fault_type, bio);
Lars Ellenberg
maintainerQuoted 2 lines · David Butterfield
Avoid a compiler warning:
drbd_receiver.c:1693:12: warning: logical ‘and’ applied to non-boolean constant [-Wlogical-op]
I don't care.
Quoted 9 lines
drbd/drbd_receiver.c +1
-1@@ -1690,7 +1690,7 @@ next_bio: bio->bi_next =NULL ;/* strip off REQ_UNPLUG unless it is the last bio */ -if (bios &&DRBD_REQ_UNPLUG ) +if (bios && (DRBD_REQ_UNPLUG !=0 )) bio->bi_opf &= ~DRBD_REQ_UNPLUG ;drbd_generic_make_request (device, fault_type, bio);