lkml.org 
[lkml]   [2017]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 2/3] [media] WL1273: Delete an unnecessary goto statement in wl1273_fm_suspend()
From
Date
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 16 Sep 2017 13:53:22 +0200

* Remove an extra goto statement.

* Delete the label "out" which became unnecessary with this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
drivers/media/radio/radio-wl1273.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/media/radio/radio-wl1273.c b/drivers/media/radio/radio-wl1273.c
index 020a792173f6..74dc3195ea2c 100644
--- a/drivers/media/radio/radio-wl1273.c
+++ b/drivers/media/radio/radio-wl1273.c
@@ -683,12 +683,9 @@ static int wl1273_fm_suspend(struct wl1273_device *radio)
else
r = -EINVAL;

- if (r) {
+ if (r)
dev_err(radio->dev, "%s: POWER_SET fails: %d\n", __func__, r);
- goto out;
- }

-out:
return r;
}

--
2.14.1
\
 
 \ /
  Last update: 2017-09-16 14:21    [W:0.045 / U:7.164 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site