diff mbox series

video: fbdev: nvidia: Remove extra return

Message ID 1562781795-3494-1-git-send-email-jrdr.linux@gmail.com (mailing list archive)
State New, archived
Headers show
Series video: fbdev: nvidia: Remove extra return | expand

Commit Message

Souptick Joarder July 10, 2019, 6:03 p.m. UTC
Minor cleanup to remove extra return statement.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
---
 drivers/video/fbdev/nvidia/nv_backlight.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Souptick Joarder July 22, 2019, 8:26 a.m. UTC | #1
On Wed, Jul 10, 2019 at 11:28 PM Souptick Joarder <jrdr.linux@gmail.com> wrote:
>
> Minor cleanup to remove extra return statement.
>

Any comment on this patch ?

> Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
> ---
>  drivers/video/fbdev/nvidia/nv_backlight.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/video/fbdev/nvidia/nv_backlight.c b/drivers/video/fbdev/nvidia/nv_backlight.c
> index e705a78..2ce5352 100644
> --- a/drivers/video/fbdev/nvidia/nv_backlight.c
> +++ b/drivers/video/fbdev/nvidia/nv_backlight.c
> @@ -123,8 +123,6 @@ void nvidia_bl_init(struct nvidia_par *par)
>
>         printk("nvidia: Backlight initialized (%s)\n", name);
>
> -       return;
> -
>  error:
>         return;
>  }
> --
> 1.9.1
>
Bartlomiej Zolnierkiewicz July 23, 2019, 3:36 p.m. UTC | #2
On 7/22/19 10:26 AM, Souptick Joarder wrote:
> On Wed, Jul 10, 2019 at 11:28 PM Souptick Joarder <jrdr.linux@gmail.com> wrote:
>>
>> Minor cleanup to remove extra return statement.
>>
> 
> Any comment on this patch ?
> 
>> Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>

Patch queued for v5.4, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
diff mbox series

Patch

diff --git a/drivers/video/fbdev/nvidia/nv_backlight.c b/drivers/video/fbdev/nvidia/nv_backlight.c
index e705a78..2ce5352 100644
--- a/drivers/video/fbdev/nvidia/nv_backlight.c
+++ b/drivers/video/fbdev/nvidia/nv_backlight.c
@@ -123,8 +123,6 @@  void nvidia_bl_init(struct nvidia_par *par)
 
 	printk("nvidia: Backlight initialized (%s)\n", name);
 
-	return;
-
 error:
 	return;
 }