Skip to contentSkip to conversation

drivers/staging/media: atomisp: Removing redundant information from dev_err

PATCH In review Pushkar Jambhlekar 2 participants 2 messages Mar 24, 2017

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

PATCH 1/1 drivers/staging/media: atomisp: Removing redundant information from dev_err

Removing hardcoded function name as code is already using __func__

---
 drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c +1 -1
index d1a609d2..a51a27b 100644
@@ -64,7 +64,7 @@ struct hmm_buffer_object *__bo_alloc(struct kmem_cache *bo_cache)
 
 	bo = kmem_cache_alloc(bo_cache, GFP_KERNEL);
 	if (!bo)
-		dev_err(atomisp_dev, "%s: __bo_alloc failed!\n", __func__);
+		dev_err(atomisp_dev, "%s: failed!\n", __func__);
 
 	return bo;
 }
Signature · 1 line
2.7.4
#1 lore raw
Quoted 12 lines · Pushkar Jambhlekar

Removing hardcoded function name as code is already using __func__

---
 drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c +0 -0
index d1a609d2..a51a27b 100644

drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c struct hmm_buffer_object *__bo_alloc(struct kmem_cache *bo_cache) · line 67

Quoted 5 lines
drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c +1 -1
@@ -64,7 +64,7 @@ struct hmm_buffer_object *__bo_alloc(struct kmem_cache *bo_cache)
 
 	bo = kmem_cache_alloc(bo_cache, GFP_KERNEL);
 	if (!bo)
-		dev_err(atomisp_dev, "%s: __bo_alloc failed!\n", __func__);
+		dev_err(atomisp_dev, "%s: failed!\n", __func__);

The whole printk can be removed. kmem_cache_alloc() has its own better printks.

regards,
dan carpenter