staging: mt7621-spi: Clean up comparison to NULL

Fix checkpatch check: Comparison to NULL could be written "!master"

Signed-off-by: Jasminko Dedic <betelge@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jasminko Dedic 2019-02-04 02:44:42 +07:00 committed by Greg Kroah-Hartman
parent 98e9400a63
commit 5ccbce3a0b

View File

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