Commit 6d49a15e authored by Branden Bonaby's avatar Branden Bonaby Committed by Greg Kroah-Hartman
Browse files

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: default avatarBranden Bonaby <brandonbonaby94@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a77a40cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}