Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] [PATCH] 2.4.19 ppp_generic.c warning fixed
@ 2002-09-13  6:00 Grant Grundler
  0 siblings, 0 replies; only message in thread
From: Grant Grundler @ 2002-09-13  6:00 UTC (permalink / raw)
  To: paulus; +Cc: parisc-linux

Paul,
Wearing my other hat (parisc-linux), I've a fix for "used before
initialized" warning in ppp_generic.c.

The ret value might want to be something other than zero in
the "if (skb) break;" condition.

thanks,
grant

Index: drivers/net/ppp_generic.c
===================================================================
RCS file: /var/cvs/linux/drivers/net/ppp_generic.c,v
retrieving revision 1.11
diff -u -p -r1.11 ppp_generic.c
--- drivers/net/ppp_generic.c   4 Aug 2002 22:58:31 -0000       1.11
+++ drivers/net/ppp_generic.c   13 Sep 2002 05:57:15 -0000
@@ -387,9 +387,9 @@ static ssize_t ppp_read(struct file *fil
        for (;;) {
                set_current_state(TASK_INTERRUPTIBLE);
                skb = skb_dequeue(&pf->rq);
+               ret = 0;
                if (skb)
                        break;
-               ret = 0;
                if (pf->dead)
                        break;
                ret = -EAGAIN;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-13  6:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-13  6:00 [parisc-linux] [PATCH] 2.4.19 ppp_generic.c warning fixed Grant Grundler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox