Commit 5ccbce3a authored by Jasminko Dedic's avatar Jasminko Dedic Committed by Greg Kroah-Hartman
Browse files

staging: mt7621-spi: Clean up comparison to NULL



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

Signed-off-by: default avatarJasminko Dedic <betelge@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 98e9400a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}