From 8331acb3a5515c01a1b73424a56f44c50ad7f1b4 Mon Sep 17 00:00:00 2001 From: Sachin Kamat Date: Fri, 13 Jun 2014 10:17:42 +0530 Subject: spi: Remove redundant OOM message in spi.c Let memory subsystem handle the error logging. Signed-off-by: Sachin Kamat Reviewed-by: Naveen Krishna Chatradhi Signed-off-by: Mark Brown --- drivers/spi/spi.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/spi/spi.c') diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index d4f9670b51bc..8bbbba5b6236 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -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; } -- cgit v1.2.3 From 840e9c354f3492259a65ae235351cde1089a409e Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Sat, 21 Jun 2014 11:40:40 +0100 Subject: spi: Remove unused variable Reported-by: kbuild test robot Signed-off-by: Mark Brown --- drivers/spi/spi.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/spi/spi.c') diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 8bbbba5b6236..cbfb250af5aa 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -345,7 +345,6 @@ static DEFINE_MUTEX(board_lock); struct spi_device *spi_alloc_device(struct spi_master *master) { struct spi_device *spi; - struct device *dev = master->dev.parent; if (!spi_master_get(master)) return NULL; -- cgit v1.2.3