mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
Staging: fbtft: Remove unnecessary 'out of memory' message.
This patch fixes checkpatch.pl warning in file fb_ssd1351.c WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6cb624ef71
commit
fad0d05f7c
1 changed files with 1 additions and 5 deletions
|
@ -218,12 +218,8 @@ static void register_onboard_backlight(struct fbtft_par *par)
|
||||||
|
|
||||||
bl_ops = devm_kzalloc(par->info->device, sizeof(struct backlight_ops),
|
bl_ops = devm_kzalloc(par->info->device, sizeof(struct backlight_ops),
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!bl_ops) {
|
if (!bl_ops)
|
||||||
dev_err(par->info->device,
|
|
||||||
"%s: could not allocate memory for backlight operations.\n",
|
|
||||||
__func__);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
bl_ops->update_status = update_onboard_backlight;
|
bl_ops->update_status = update_onboard_backlight;
|
||||||
bl_props.type = BACKLIGHT_RAW;
|
bl_props.type = BACKLIGHT_RAW;
|
||||||
|
|
Loading…
Reference in a new issue