• Vijaya Mohan Guvva's avatar
    [SCSI] bfa: Fix smatch warnings · bcde5b81
    Vijaya Mohan Guvva authored
    Fixed following smatch warnings in bfa.
    drivers/scsi/bfa/bfa_ioc.c:3882 bfa_sfp_show_comp() error: memcpy()
    'des' too small (64 vs 248)
    drivers/scsi/bfa/bfa_ioc.c:6859 bfa_flash_status_read() warn: unsigned
    'status' is never less than zero.
    drivers/scsi/bfa/bfa_ioc.c:6881 bfa_flash_status_read() warn: unsigned
    'status' is never less than zero.
    drivers/scsi/bfa/bfa_ioc.c:6917 bfa_flash_read_start() warn: unsigned
    'status' is never less than zero.
    drivers/scsi/bfa/bfa_ioc.c:7043 bfa_flash_raw_read() warn: unsigned
    'status' is never less than zero.
    Signed-off-by: default avatarVijaya Mohan Guvva <vmohan@brocade.com>
    Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
    bcde5b81
bfa_ioc.c 161 KB