mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 04:34:11 +08:00
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:
parent
98e9400a63
commit
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user