Commit 8331acb3 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

spi: Remove redundant OOM message in spi.c

Let memory subsystem handle the error logging.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Reviewed-by: default avatarNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 7171511e
......@@ -352,7 +352,6 @@ struct spi_device *spi_alloc_device(struct spi_master *master)
spi = kzalloc(sizeof(*spi), GFP_KERNEL);
if (!spi) {
dev_err(dev, "cannot alloc spi_device\n");
spi_master_put(master);
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment