linux/drivers/scsi/be2iscsi
Dan Carpenter 4053a4be52 [SCSI] be2iscsi: cleanup a min_t() call
"sense_len" was declared as int type but actually it only stores a
u16 value that comes from hardware.  The cast to u16 in min_t()
confuses static analysis because it truncates the int to u16 so I've
fixed the declaration to reflect that "sense_len" is just a u16.

Also there was a call to cpu_to_be16() which I've changed to
be16_to_cpu().  The functions are equivalent, but obviously the
hardware is big endian and we're doing the min_t() comparison on CPU
endian values.

This whole patch is just a cleanup and doesn't affect how the code
works.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Acked-by: Jayamohan Kallickal <Jayamohan.kallickal@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-12-15 10:57:31 +04:00
..
be.h
be_cmds.c [SCSI] be2iscsi: memset wrb for ring create 2011-10-16 11:03:40 -05:00
be_cmds.h [SCSI] be2iscsi: Fix for kdump failure 2011-10-16 11:01:06 -05:00
be_iscsi.c [SCSI] be2iscsi: remove host and session casts 2011-08-27 08:36:17 -06:00
be_iscsi.h [SCSI] iscsi cls: sysfs group is_visible callout for conn attrs 2011-08-27 08:36:03 -06:00
be_main.c [SCSI] be2iscsi: cleanup a min_t() call 2011-12-15 10:57:31 +04:00
be_main.h [SCSI] be2iscsi: Move driver Version to 4.1.239.0 2011-10-16 11:04:34 -05:00
be_mgmt.c [SCSI] be2iscsi: fix chip cleanup 2011-05-01 16:34:41 -05:00
be_mgmt.h
Kconfig
Makefile