staging: mt7621-pci: remove comparison to null to fix checkpatch warning
Subsystems (2)
PATCH 1/1 staging: mt7621-pci: remove comparison to null to fix checkpatch warning
remove comparison to null to fix warning reported by checkpatch.pl tool
"CHECK: Comparison to NULL could be written "res""
Signed-off-by Jules Irenge <[email protected]>
--- drivers/staging/mt7621-pci/pci-mt7621.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt7621-pci/pci-mt7621.c +1 -1
@@ -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); }
Signature · 1 line
2.20.1
Greg KH
maintainerQuoted 14 lines · Jules Irenge
remove comparison to null to fix warning reported by checkpatch.pl tool
"CHECK: Comparison to NULL could be written "res""Signed-off-by Jules Irenge <[email protected]>--- drivers/staging/mt7621-pci/pci-mt7621.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/mt7621-pci/pci-mt7621.c +0
-0
drivers/staging/mt7621-pci/pci-mt7621.c static int mt7621_pci_parse_request_of_pci_ranges(struct mt7621_pcie *pcie) · line 281
Quoted 8 lines
drivers/staging/mt7621-pci/pci-mt7621.c +1
-1@@ -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); }
This patch does not apply to my staging-testing branch at all :(