mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
scsi: fix operator precedence warning
Fix operator precedence warning (from sparse), which results in the data value always being 0: drivers/scsi/qla4xxx/ql4_mbx.c:470:66: warning: right shift by bigger than source value Signed-off-by: Randy Dunlap <[email protected]> Acked-by: Ravi Anand <[email protected]> Cc: David C Somayajulu <[email protected]> Cc: Karen Higgins <[email protected]> Cc: Vikas Chaudhary <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c81eddb0e3
commit
1482338f62
1 changed files with 1 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ int qla4xxx_get_fwddb_entry(struct scsi_qla_host *ha,
|
|||
if (conn_err_detail)
|
||||
*conn_err_detail = mbox_sts[5];
|
||||
if (tcp_source_port_num)
|
||||
*tcp_source_port_num = (uint16_t) mbox_sts[6] >> 16;
|
||||
*tcp_source_port_num = (uint16_t) (mbox_sts[6] >> 16);
|
||||
if (connection_id)
|
||||
*connection_id = (uint16_t) mbox_sts[6] & 0x00FF;
|
||||
status = QLA_SUCCESS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue