diff options
author | Jasminko Dedic <betelge@gmail.com> | 2019-02-04 02:44:42 +0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-04 12:34:37 +0100 |
commit | 5ccbce3a0b0e10694f1a62e8b1ce9b46d1809eea (patch) | |
tree | e82077c7a3397872c7ffaa2602a226dabc2cb3ea /drivers/staging | |
parent | 98e9400a63d9aee6c4db5698653f47c18915afea (diff) | |
download | linux-stable-5ccbce3a0b0e10694f1a62e8b1ce9b46d1809eea.tar.gz linux-stable-5ccbce3a0b0e10694f1a62e8b1ce9b46d1809eea.tar.bz2 linux-stable-5ccbce3a0b0e10694f1a62e8b1ce9b46d1809eea.zip |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/mt7621-spi/spi-mt7621.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c index 167d0f09823b..b509f9fe3346 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; } |