Skip to contentSkip to conversation

soc: blackfin: remove 'out of memory' message

PATCH New Mihai Burduselu 1 participant 1 message Feb 25, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: blackfin: remove 'out of memory' message

reported by checkpatch.pl

---
 sound/soc/blackfin/bf5xx-sport.c | 8 ++------
 sound/soc/blackfin/bf6xx-sport.c | 4 +---
 2 files changed, 3 insertions(+), 9 deletions(-)
sound/soc/blackfin/bf5xx-sport.c +2 -6
index 9dfa1241ea66..c445d6cc875e 100644
@@ -876,10 +876,8 @@ struct sport_device *sport_init(struct platform_device *pdev,
 	}
 
 	sport = kzalloc(sizeof(*sport), GFP_KERNEL);
-	if (!sport) {
-		dev_err(dev, "failed to allocate for sport device\n");
+	if (!sport)
 		goto __init_err0;
-	}
 
 	sport->num = param.num;
 	sport->dma_rx_chan = param.dma_rx_chan;
@@ -921,10 +919,8 @@ struct sport_device *sport_init(struct platform_device *pdev,
 	sport->dummy_count = param.dummy_count;
 
 	sport->private_data = kzalloc(priv_size, GFP_KERNEL);
-	if (!sport->private_data) {
-		dev_err(dev, "could not alloc priv data %zu bytes\n", priv_size);
+	if (!sport->private_data)
 		goto __init_err4;
-	}
 
 	if (L1_DATA_A_LENGTH)
 		sport->dummy_buf = l1_data_sram_zalloc(param.dummy_count * 2);
sound/soc/blackfin/bf6xx-sport.c +1 -3
index dfb744381c42..b56ff75d4c13 100644
@@ -388,10 +388,8 @@ struct sport_device *sport_create(struct platform_device *pdev)
 	int ret;
 
 	sport = kzalloc(sizeof(*sport), GFP_KERNEL);
-	if (!sport) {
-		dev_err(dev, "Unable to allocate memory for sport device\n");
+	if (!sport)
 		return NULL;
-	}
 	sport->pdev = pdev;
 
 	ret = sport_get_resource(sport);
Signature · 1 line
2.11.0