Commit 162cca5e authored by Wei Yongjun's avatar Wei Yongjun Committed by James Bottomley

[SCSI] csiostor: remove unused variable in csio_process_fwevtq_entry()

The variable 'data' is initialized but never used
otherwise, so remove the unused variable.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarNaresh Kumar Inna <naresh@chelsio.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 38a4089a
...@@ -3892,7 +3892,6 @@ csio_process_fwevtq_entry(struct csio_hw *hw, void *wr, uint32_t len, ...@@ -3892,7 +3892,6 @@ csio_process_fwevtq_entry(struct csio_hw *hw, void *wr, uint32_t len,
struct csio_fl_dma_buf *flb, void *priv) struct csio_fl_dma_buf *flb, void *priv)
{ {
__u8 op; __u8 op;
__be64 *data;
void *msg = NULL; void *msg = NULL;
uint32_t msg_len = 0; uint32_t msg_len = 0;
bool msg_sg = 0; bool msg_sg = 0;
...@@ -3908,8 +3907,6 @@ csio_process_fwevtq_entry(struct csio_hw *hw, void *wr, uint32_t len, ...@@ -3908,8 +3907,6 @@ csio_process_fwevtq_entry(struct csio_hw *hw, void *wr, uint32_t len,
msg = (void *) flb; msg = (void *) flb;
msg_len = flb->totlen; msg_len = flb->totlen;
msg_sg = 1; msg_sg = 1;
data = (__be64 *) msg;
} else if (op == CPL_FW6_MSG || op == CPL_FW4_MSG) { } else if (op == CPL_FW6_MSG || op == CPL_FW4_MSG) {
CSIO_INC_STATS(hw, n_cpl_fw6_msg); CSIO_INC_STATS(hw, n_cpl_fw6_msg);
...@@ -3917,8 +3914,6 @@ csio_process_fwevtq_entry(struct csio_hw *hw, void *wr, uint32_t len, ...@@ -3917,8 +3914,6 @@ csio_process_fwevtq_entry(struct csio_hw *hw, void *wr, uint32_t len,
msg = (void *)((uintptr_t)wr + sizeof(__be64)); msg = (void *)((uintptr_t)wr + sizeof(__be64));
msg_len = (op == CPL_FW6_MSG) ? sizeof(struct cpl_fw6_msg) : msg_len = (op == CPL_FW6_MSG) ? sizeof(struct cpl_fw6_msg) :
sizeof(struct cpl_fw4_msg); sizeof(struct cpl_fw4_msg);
data = (__be64 *) msg;
} else { } else {
csio_warn(hw, "unexpected CPL %#x on FW event queue\n", op); csio_warn(hw, "unexpected CPL %#x on FW event queue\n", op);
CSIO_INC_STATS(hw, n_cpl_unexp); CSIO_INC_STATS(hw, n_cpl_unexp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment