From: Jasminko Dedic Date: Sun, 3 Feb 2019 19:44:42 +0000 (+0700) Subject: staging: mt7621-spi: Clean up comparison to NULL X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5ccbce3a0b0e10694f1a62e8b1ce9b46d1809eea;p=linux.git staging: mt7621-spi: Clean up comparison to NULL Fix checkpatch check: Comparison to NULL could be written "!master" Signed-off-by: Jasminko Dedic Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c index 167d0f09823b1..b509f9fe3346b 100644 --- a/drivers/staging/mt7621-spi/spi-mt7621.c +++ b/drivers/staging/mt7621-spi/spi-mt7621.c @@ -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; }