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:
Sachin Kamat 2014-06-13 10:17:42 +05:30 committed by Mark Brown
parent 7171511eae
commit 8331acb3a5
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}