diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-30 09:44:29 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-09-23 15:23:59 +0300 |
commit | 9722e5696ca729044462c4456ddde90061809f7e (patch) | |
tree | d264555c230124952147ebe501e2dd2722ba7063 /drivers/media/dvb-frontends/cx24113.c | |
parent | af28c99628ebfbdc3fff3d92c7044d3a51b7ccea (diff) | |
download | linux-9722e5696ca729044462c4456ddde90061809f7e.tar.xz |
media: dvb-frontends: delete jump targets
* Return directly after a call of the function "kzalloc" failed
at the beginning.
* Move a bit of exception handling code into an if branch.
* Delete jump targets which became unnecessary with this refactoring.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Diffstat (limited to 'drivers/media/dvb-frontends/cx24113.c')
-rw-r--r-- | drivers/media/dvb-frontends/cx24113.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/cx24113.c b/drivers/media/dvb-frontends/cx24113.c index 2c5502cab5e1..ee1f704f81f2 100644 --- a/drivers/media/dvb-frontends/cx24113.c +++ b/drivers/media/dvb-frontends/cx24113.c @@ -556,7 +556,7 @@ struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe, int rc; if (!state) - goto error; + return NULL; /* setup the state */ state->config = config; |