From c47b4ac059887d222399286eb2e4dea319726adb Mon Sep 17 00:00:00 2001 From: Kenneth Aafloy Date: Wed, 9 Mar 2005 15:52:00 +0000 Subject: - kfree(NULL) is safe --- linux/drivers/media/dvb/frontends/dib3000mc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linux/drivers/media/dvb/frontends/dib3000mc.c') diff --git a/linux/drivers/media/dvb/frontends/dib3000mc.c b/linux/drivers/media/dvb/frontends/dib3000mc.c index 76707bfca..08d2e8488 100644 --- a/linux/drivers/media/dvb/frontends/dib3000mc.c +++ b/linux/drivers/media/dvb/frontends/dib3000mc.c @@ -881,8 +881,7 @@ struct dvb_frontend* dib3000mc_attach(const struct dib3000_config* config, return &state->frontend; error: - if (state) - kfree(state); + kfree(state); return NULL; } -- cgit v1.2.3