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>
This commit is contained in:
Branden Bonaby 2019-03-12 14:06:15 -04:00 committed by Greg Kroah-Hartman
parent a77a40cf8b
commit 6d49a15ead

View File

@ -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);
}