浏览代码

qlge: remove duplicated assignment to mbcp

The assignment to mbcp is identical to the initiatialized value assigned
to mbcp at declaration time a few lines earlier, hence we can remove the
second redundant assignment.  Cleans up clang warning:

drivers/net/ethernet/qlogic/qlge/qlge_mpi.c:209:22: warning:
Value stored to 'mbcp' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Colin Ian King 8 年之前
父节点
当前提交
98b07e3ed0
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/net/ethernet/qlogic/qlge/qlge_mpi.c

+ 0 - 1
drivers/net/ethernet/qlogic/qlge/qlge_mpi.c

@@ -213,7 +213,6 @@ static int ql_idc_req_aen(struct ql_adapter *qdev)
 	/* Get the status data and start up a thread to
 	/* Get the status data and start up a thread to
 	 * handle the request.
 	 * handle the request.
 	 */
 	 */
-	mbcp = &qdev->idc_mbc;
 	mbcp->out_count = 4;
 	mbcp->out_count = 4;
 	status = ql_get_mb_sts(qdev, mbcp);
 	status = ql_get_mb_sts(qdev, mbcp);
 	if (status) {
 	if (status) {