[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5051ACDB.5030407@imap.cc>
Date: Thu, 13 Sep 2012 11:52:27 +0200
From: Tilman Schmidt <tilman@...p.cc>
To: Peter Senna Tschudin <peter.senna@...il.com>
CC: Hansjoerg Lipp <hjlipp@....de>, kernel-janitors@...r.kernel.org,
Karsten Keil <isdn@...ux-pingi.de>,
gigaset307x-common@...ts.sourceforge.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 9/9] drivers/isdn/gigaset/common.c: Remove useless kfree
Am 12.09.2012 17:06, schrieb Peter Senna Tschudin:
> From: Peter Senna Tschudin <peter.senna@...il.com>
>
> Remove useless kfree() and clean up code related to the removal.
>
> The semantic patch that finds this problem is as follows:
[...]
>
> Signed-off-by: Peter Senna Tschudin <peter.senna@...il.com>
Acked-by: Tilman Schmidt <tilman@...p.cc>
> ---
> drivers/isdn/gigaset/common.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/isdn/gigaset/common.c b/drivers/isdn/gigaset/common.c
> index aa41485..30a6b17 100644
> --- a/drivers/isdn/gigaset/common.c
> +++ b/drivers/isdn/gigaset/common.c
> @@ -1123,7 +1123,6 @@ struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors,
> return drv;
>
> error:
> - kfree(drv->cs);
> kfree(drv);
> return NULL;
> }
This is indeed vestigial code, left in when another error path
that needed it was removed. Though innocuous, it's better to
remove it.
Thanks,
Tilman
--
Tilman Schmidt E-Mail: tilman@...p.cc
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
Ungeöffnet mindestens haltbar bis: (siehe Rückseite)
Download attachment "signature.asc" of type "application/pgp-signature" (261 bytes)
Powered by blists - more mailing lists