spi: Remove redundant OOM message in spi.c
Let memory subsystem handle 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
8331acb3a5
@ -352,7 +352,6 @@ struct spi_device *spi_alloc_device(struct spi_master *master)
|
|||||||
|
|
||||||
spi = kzalloc(sizeof(*spi), GFP_KERNEL);
|
spi = kzalloc(sizeof(*spi), GFP_KERNEL);
|
||||||
if (!spi) {
|
if (!spi) {
|
||||||
dev_err(dev, "cannot alloc spi_device\n");
|
|
||||||
spi_master_put(master);
|
spi_master_put(master);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user