diff options
author | Branden Bonaby <brandonbonaby94@gmail.com> | 2019-03-12 21:06:15 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-18 09:05:24 +0300 |
commit | 6d49a15ead2b3399f8933f1396e4f50c9060f200 (patch) | |
tree | 800037ec5cbe473d9639eb01121cb14bddf8b18d /drivers/staging/mt7621-pci | |
parent | a77a40cf8b42b31bcecdf02bfa71eca416719be0 (diff) | |
download | linux-6d49a15ead2b3399f8933f1396e4f50c9060f200.tar.xz |
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.c | 2 |
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); } |