aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/cx24113.c
diff options
context:
space:
mode:
authorGravatar Markus Elfring <elfring@users.sourceforge.net> 2017-08-30 02:44:29 -0400
committerGravatar Mauro Carvalho Chehab <mchehab@s-opensource.com> 2017-09-23 08:23:59 -0400
commit9722e5696ca729044462c4456ddde90061809f7e (patch)
treed264555c230124952147ebe501e2dd2722ba7063 /drivers/media/dvb-frontends/cx24113.c
parentmedia: drivers: Adjust checks for null pointers (diff)
downloadlinux-9722e5696ca729044462c4456ddde90061809f7e.tar.gz
linux-9722e5696ca729044462c4456ddde90061809f7e.tar.bz2
linux-9722e5696ca729044462c4456ddde90061809f7e.zip
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.c2
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;