staging: dgnc: remove NULL test
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 3 Oct 2015 15:22:46 +0000 (20:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:30:13 +0000 (09:30 +0100)
This NULL test is not required as iounmap will validate the argument.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_cls.c

index 24fc28c0c966eab53e72949233c32dda6ca18889..944982a46e4b6695951ca6b935f490e7586e8b88 100644 (file)
@@ -1307,6 +1307,5 @@ static void cls_vpd(struct dgnc_board *brd)
        }
        pr_info("\n");
 
-       if (re_map_vpdbase)
-               iounmap(re_map_vpdbase);
+       iounmap(re_map_vpdbase);
 }