From: Branden Bonaby Date: Tue, 12 Mar 2019 18:06:15 +0000 (-0400) Subject: staging: mt7621-pci: IF statement expression comparing to NULL X-Git-Tag: v5.2-rc1~153^2~428 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6d49a15ead2b3399f8933f1396e4f50c9060f200;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Greg Kroah-Hartman --- 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); }