staging: mt7621-pci: IF statement expression comparing to NULL
authorBranden Bonaby <brandonbonaby94@gmail.com>
Tue, 12 Mar 2019 18:06:15 +0000 (14:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:05:24 +0000 (07:05 +0100)
Remove comparison to NULL in the if statement expression
to match the Linux Kernel coding style.
CHECK: Comparison to NULL could be written "res"

Signed-off-by: Branden Bonaby <brandonbonaby94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c

index 379ae78..03d919a 100644 (file)
@@ -275,7 +275,7 @@ static int mt7621_pci_parse_request_of_pci_ranges(struct mt7621_pcie *pcie)
                        break;
                }
 
-               if (res != NULL)
+               if (res)
                        of_pci_range_to_resource(&range, node, res);
        }