[SCSI] scsi_scan.c: fix compile warnings
drivers/scsi/scsi_scan.c: In function `scsi_probe_and_add_lun': drivers/scsi/scsi_scan.c:926: warning: unused variable `vend' drivers/scsi/scsi_scan.c:926: warning: unused variable `mod' drivers/scsi/scsi_scan.c: At top level: drivers/scsi/scsi_scan.c:829: warning: `scsi_inq_str' defined but not used Fix those, tighten up the (somewhat poorly-designed) logging macro and fix some coding-style warts. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
cdb8c2a6d8
commit
c5f2e6404c
@@ -45,10 +45,12 @@ extern unsigned int scsi_logging_level;
|
||||
((scsi_logging_level >> (SHIFT)) & ((1 << (BITS)) - 1))
|
||||
|
||||
#define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD) \
|
||||
{ \
|
||||
do { \
|
||||
if (unlikely((SCSI_LOG_LEVEL(SHIFT, BITS)) > (LEVEL))) \
|
||||
(CMD); \
|
||||
}
|
||||
do { \
|
||||
CMD; \
|
||||
} while (0); \
|
||||
} while (0)
|
||||
#else
|
||||
#define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD)
|
||||
#endif /* CONFIG_SCSI_LOGGING */
|
||||
|
Reference in New Issue
Block a user