Skip to contentSkip to conversation

Staging: fbtft: Remove unnecessary 'out of memory' message.

PATCH New Dilek Uzulmez 1 participant 1 message Mar 2, 2015

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

PATCH 1/1 Staging: fbtft: Remove unnecessary 'out of memory' message.

This patch fixes checkpatch.pl warning in file fbtft-core.c
WARNING: Possible unnecessary 'out of memory' message

---
 drivers/staging/fbtft/fbtft-core.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/staging/fbtft/fbtft-core.c +1 -5
index ac4287f..7ac1753 100644
@@ -302,12 +302,8 @@ void fbtft_register_backlight(struct fbtft_par *par)
 
 	bl_ops = devm_kzalloc(par->info->device, sizeof(struct backlight_ops),
 				GFP_KERNEL);
-	if (!bl_ops) {
-		dev_err(par->info->device,
-			"%s: could not allocate memeory for backlight operations.\n",
-			__func__);
+	if (!bl_ops)
 		return;
-	}
 
 	bl_ops->get_brightness = fbtft_backlight_get_brightness;
 	bl_ops->update_status = fbtft_backlight_update_status;
Signature · 1 line
1.9.1