Prev: [PATCH] Enable pvclock flags in vcpu_time_info structure
Next: : Fix deadlock in USBIP driver (staging), linux-2.6.34-rc5
From: Randy Dunlap on 22 Apr 2010 14:10 From: Randy Dunlap <randy.dunlap(a)oracle.com> 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 <randy.dunlap(a)oracle.com> Acked-by: Ravi Anand <ravi.anand(a)qlogic.com> Cc: David C Somayajulu <david.somayajulu(a)qlogic.com> Cc: Karen Higgins <karen.higgins(a)qlogic.com> Cc: Vikas Chaudhary <vikas.chaudhary(a)qlogic.com> --- drivers/scsi/qla4xxx/ql4_mbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.34-rc3-git5.orig/drivers/scsi/qla4xxx/ql4_mbx.c +++ linux-2.6.34-rc3-git5/drivers/scsi/qla4xxx/ql4_mbx.c @@ -467,7 +467,7 @@ int qla4xxx_get_fwddb_entry(struct scsi_ 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; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |