Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48205533 authored by Tapasweni Pathak's avatar Tapasweni Pathak Committed by Mauro Carvalho Chehab
Browse files

[media] drivers: media: i2c : s5c73m3: Replace dev_err with pr_err



Replace dev_err statement with pr_err to fix null dereference.

Found by Coccinelle.

Signed-off-by: default avatarTapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 3f845f3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ static int spi_xmit(struct spi_device *spi_dev, void *addr, const int len,
		xfer.rx_buf = addr;

	if (spi_dev == NULL) {
		dev_err(&spi_dev->dev, "SPI device is uninitialized\n");
		pr_err("SPI device is uninitialized\n");
		return -ENODEV;
	}