From: Jeff Garzik <jeff@garzik.org>
To: Krzysztof Halasa <khc@pm.waw.pl>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH] Removing dead code in /drivers/net/wan/hdlc_fr.c
Date: Fri, 25 Apr 2008 02:01:58 -0400 [thread overview]
Message-ID: <481173D6.6080609@garzik.org> (raw)
In-Reply-To: <m3lk385tx4.fsf@maximus.localdomain>
Krzysztof Halasa wrote:
> From: Cédric Augonnet <Cedric.Augonnet@ens-lyon.fr>
>
> Removing dead code in /drivers/net/wan/hdlc_fr.c
>
> The local variable "prefix" is never used anymore, and the content of
> this string appears a bit later, directly in a call to "alloc_netdev"
> after doing exactly the same if/else test. So there seems to be no
> point keeping those 4 lines anymore.
>
> Signed-off-by: Cédric Augonnet <cedric.augonnet@ens-lyon.org>
> Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
>
> diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c
> index c4ab032..520bb0b 100644
> --- a/drivers/net/wan/hdlc_fr.c
> +++ b/drivers/net/wan/hdlc_fr.c
> @@ -1090,10 +1090,6 @@ static int fr_add_pvc(struct net_device *frad, unsigned int dlci, int type)
> pvc_device *pvc = NULL;
> struct net_device *dev;
> int result, used;
> - char * prefix = "pvc%d";
> -
> - if (type == ARPHRD_ETHER)
> - prefix = "pvceth%d";
>
> if ((pvc = add_pvc(frad, dlci)) == NULL) {
applied
prev parent reply other threads:[~2008-04-25 6:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-20 17:15 [PATCH] Removing dead code in /drivers/net/wan/hdlc_fr.c Krzysztof Halasa
2008-04-25 6:01 ` Jeff Garzik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=481173D6.6080609@garzik.org \
--to=jeff@garzik.org \
--cc=khc@pm.waw.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).