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:
Родитель
98e9400a63
Коммит
5ccbce3a0b
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче