Casting the return value which is a void pointer is redundant.
The conversion from void pointer to any other pointer type is
guaranteed by the C programming language.

Signed-off-by: Jingoo Han <[email protected]>
---
 drivers/scsi/be2iscsi/be_main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index a1f5ac7..c6cdd7d 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -4836,7 +4836,7 @@ static void beiscsi_shutdown(struct pci_dev *pcidev)
 
        struct beiscsi_hba *phba = NULL;
 
-       phba = (struct beiscsi_hba *)pci_get_drvdata(pcidev);
+       phba = pci_get_drvdata(pcidev);
        if (!phba) {
                dev_err(&pcidev->dev, "beiscsi_shutdown called with no phba\n");
                return;
-- 
1.7.10.4


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to