summaryrefslogtreecommitdiff
path: root/drivers/staging/mt7621-pci
diff options
context:
space:
mode:
authorBranden Bonaby <brandonbonaby94@gmail.com>2019-03-12 14:06:15 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-18 07:05:24 +0100
commit6d49a15ead2b3399f8933f1396e4f50c9060f200 (patch)
tree800037ec5cbe473d9639eb01121cb14bddf8b18d /drivers/staging/mt7621-pci
parenta77a40cf8b42b31bcecdf02bfa71eca416719be0 (diff)
staging: mt7621-pci: IF statement expression comparing to NULL
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>
Diffstat (limited to 'drivers/staging/mt7621-pci')
-rw-r--r--drivers/staging/mt7621-pci/pci-mt7621.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c
index 379ae780c691..03d919a94552 100644
--- a/drivers/staging/mt7621-pci/pci-mt7621.c
+++ b/drivers/staging/mt7621-pci/pci-mt7621.c
@@ -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);
}