scsi: qla2xxx: remove some redundant pointer assignments
authorColin Ian King <colin.king@canonical.com>
Thu, 6 Apr 2017 11:19:57 +0000 (12:19 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Apr 2017 00:42:43 +0000 (20:42 -0400)
commit1fdcd2d1da7f5293a210af52407d5024036975c2
treee4191df3e8a27119c32e636b24b77708909021b2
parentbf5ea6fba78b62a4d4b70151143077131ccf32a8
scsi: qla2xxx: remove some redundant pointer assignments

There are several local or function parameter pointers that are being
assigned NULL after a kfree where and these have no effect and hence can
be removed.

Fixes various cppcheck warnings:

"Assignment of function parameter has no effect outside the
function. Did you forget dereferencing it"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c