* [patch 2/4] fc.c warning fix
@ 2004-06-24 6:30 akpm
2004-06-24 19:43 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2004-06-24 6:30 UTC (permalink / raw)
To: davem; +Cc: netdev, akpm
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);
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 2/4] fc.c warning fix
2004-06-24 6:30 [patch 2/4] fc.c warning fix akpm
@ 2004-06-24 19:43 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-06-24 19:43 UTC (permalink / raw)
To: akpm; +Cc: netdev
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-24 19:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 6:30 [patch 2/4] fc.c warning fix akpm
2004-06-24 19:43 ` David S. Miller
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).