[PATCH] dvb: nxt200x: remove null check before kfree()
authorMichael Krufky <mkrufky@m1k.net>
Wed, 9 Nov 2005 05:35:48 +0000 (21:35 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:05 +0000 (07:56 -0800)
Removed unnecessary null check before kfree() ...inspired by the big patch
from Jesper Juhl.

Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/dvb/frontends/nxt200x.c

index d1b9f8b9b43749a864b613e2a944b13f7920c808..97ee8017dac8307da5894a9d4252216dbfc84b36 100644 (file)
@@ -1159,8 +1159,7 @@ struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config,
        return &state->frontend;
 
 error:
-       if (state)
-               kfree(state);
+       kfree(state);
        printk("Unknown/Unsupported NXT chip: %02X %02X %02X %02X %02X\n",
                buf[0], buf[1], buf[2], buf[3], buf[4]);
        return NULL;