From a09b6b8851c72d9ac3a178cd9ecfe5e075c6d52f Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Mon, 24 Oct 2005 00:10:35 +0000 Subject: From: Jesper Juhl This is the drivers/media/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in drivers/media/. Signed-off-by: Jesper Juhl Cc: Johannes Stezenbach Cc: Michael Krufky Cc: Mauro Carvalho Chehab Signed-off-by: Andrew Morton --- linux/drivers/media/dvb/frontends/lgdt330x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linux/drivers/media/dvb/frontends/lgdt330x.c') diff --git a/linux/drivers/media/dvb/frontends/lgdt330x.c b/linux/drivers/media/dvb/frontends/lgdt330x.c index bef63840d..a35460903 100644 --- a/linux/drivers/media/dvb/frontends/lgdt330x.c +++ b/linux/drivers/media/dvb/frontends/lgdt330x.c @@ -759,8 +759,7 @@ struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config, return &state->frontend; error: - if (state) - kfree(state); + kfree(state); dprintk("%s: ERROR\n",__FUNCTION__); return NULL; } -- cgit v1.2.3