netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: akpm@osdl.org
To: davem@redhat.com
Cc: netdev@oss.sgi.com, akpm@osdl.org
Subject: [patch 2/4] fc.c warning fix
Date: Wed, 23 Jun 2004 23:30:34 -0700	[thread overview]
Message-ID: <200406240631.i5O6VUZ31243@mail.osdl.org> (raw)



net/802/fc.c: In function `fc_header':
net/802/fc.c:50: warning: 'fch' is used uninitialized in this function

Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/net/802/fc.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN net/802/fc.c~fc-warning-fix net/802/fc.c
--- 25/net/802/fc.c~fc-warning-fix	2004-06-23 23:30:09.627735232 -0700
+++ 25-akpm/net/802/fc.c	2004-06-23 23:30:09.630734776 -0700
@@ -47,7 +47,7 @@ int fc_header(struct sk_buff *skb, struc
 	 */
 	if (type == ETH_P_IP || type == ETH_P_ARP)
 	{
-		struct fcllc *fcllc=(struct fcllc *)(fch+1);
+		struct fcllc *fcllc;
 
 		hdr_len = sizeof(struct fch_hdr) + sizeof(struct fcllc);
 		fch = (struct fch_hdr *)skb_push(skb, hdr_len);
_

             reply	other threads:[~2004-06-24  6:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-24  6:30 akpm [this message]
2004-06-24 19:43 ` [patch 2/4] fc.c warning fix David S. Miller

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=200406240631.i5O6VUZ31243@mail.osdl.org \
    --to=akpm@osdl.org \
    --cc=davem@redhat.com \
    --cc=netdev@oss.sgi.com \
    /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).