]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2iscsi: Fix bogus WARN_ON length check
authorTim Gardner <tim.gardner@canonical.com>
Fri, 30 Oct 2015 18:22:58 +0000 (12:22 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 15:21:43 +0000 (07:21 -0800)
commit2f170911d18ea074603272132f35ea9b7c58ba6a
tree758fa077852bf20e704a992326925c57e6bafbe3
parentc8e45279b50122b49ebc789edb4feb432599b8b7
be2iscsi: Fix bogus WARN_ON length check

Orabug: 22725588

drivers/scsi/be2iscsi/be_main.c: In function 'be_sgl_create_contiguous':
drivers/scsi/be2iscsi/be_main.c:3187:18: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
  WARN_ON(!length > 0);

gcc version 5.2.1

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Cc: Jayamohan Kallickal <jayamohan.kallickal@avagotech.com>
Cc: Minh Tran <minh.tran@avagotech.com>
Cc: John Soni Jose <sony.john-n@avagotech.com>
Cc: "James E.J. Bottomley" <JBottomley@odin.com>
Reported-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Manoj Kumar <manoj@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/scsi/be2iscsi/be_main.c