spi: spi-adi-v3: Remove redundant OOM message
Let memory subsystem do the error logging. Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Reviewed-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
7171511eae
commit
1380caa0c0
@ -660,10 +660,9 @@ static int adi_spi_setup(struct spi_device *spi)
|
||||
struct adi_spi3_chip *chip_info = spi->controller_data;
|
||||
|
||||
chip = kzalloc(sizeof(*chip), GFP_KERNEL);
|
||||
if (!chip) {
|
||||
dev_err(&spi->dev, "can not allocate chip data\n");
|
||||
if (!chip)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
if (chip_info) {
|
||||
if (chip_info->control & ~ctl_reg) {
|
||||
dev_err(&spi->dev,
|
||||
|
Loading…
Reference in New Issue
Block a user