提交 15a1c503 编写于 作者: S Shubhrajyoti Datta 提交者: Mark Brown

spi: cadence: Fix a check patch warning

CHECK: Comparison to NULL could be written "!master"
+	if (master == NULL)
Signed-off-by: NShubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 f55532a0
......@@ -481,7 +481,7 @@ static int cdns_spi_probe(struct platform_device *pdev)
u32 num_cs;
master = spi_alloc_master(&pdev->dev, sizeof(*xspi));
if (master == NULL)
if (!master)
return -ENOMEM;
xspi = spi_master_get_devdata(master);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册