Commit 5ccbce3a authored by Jasminko Dedic's avatar Jasminko Dedic Committed by Greg Kroah-Hartman

staging: mt7621-spi: Clean up comparison to NULL

Fix checkpatch check: Comparison to NULL could be written "!master"
Signed-off-by: default avatarJasminko Dedic <betelge@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 98e9400a
......@@ -355,7 +355,7 @@ static int mt7621_spi_probe(struct platform_device *pdev)
return status;
master = spi_alloc_master(&pdev->dev, sizeof(*rs));
if (master == NULL) {
if (!master) {
dev_info(&pdev->dev, "master allocation failed\n");
return -ENOMEM;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment