2.5.15 : drivers/block/paride/pcd.c minor unused var patch

2.5.15 : drivers/block/paride/pcd.c minor unused var patch

Post by Frank Davi » Sun, 12 May 2002 13:40:06



Hello all,
  The following just removes an unused varible (Didn't see this posted
yet).

Regards,
Frank

--- drivers/block/paride/pcd.c.old      Sat May  4 12:23:09 2002

 int pcd_init (void)    /* preliminary initialisation */

-{       int    i, unit;
+{       int unit;

        if (disable) return -1;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.15 : drivers/block/paride/pcd.c minor unused var patch

Post by William Lee Irwin II » Sun, 12 May 2002 13:40:07



> Hello all,
>   The following just removes an unused varible (Didn't see this posted
> yet).

> Regards,
> Frank

> --- drivers/block/paride/pcd.c.old Sat May  4 12:23:09 2002
> +++ drivers/block/paride/pcd.c     Sat May 11 00:15:10 2002

>  int pcd_init (void)       /* preliminary initialisation */

> -{       int       i, unit;
> +{       int unit;

>    if (disable) return -1;

Any chance you could do something like

int pcd_init(void) /* preliminary initialization */
{
        int unit;

        if (disable)
                return -1;
...

both unit and i are unused and there's a bit of style breakage to fix.

Cheers,
Bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.15 : drivers/block/paride/pcd.c minor unused var patch

Post by William Lee Irwin II » Sun, 12 May 2002 13:50:06



> > Hello all,
> >   The following just removes an unused varible (Didn't see this posted
> > yet).


Quote:> both unit and i are unused and there's a bit of style breakage to fix.

woops, missed ^W's, unit is used later.

Cheers,
Bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. 2.5.15 : drivers/block/paride/pd.c minor unused var

Hello all,
  This patch removes an unused function variable..

Regards,
Frank

--- drivers/block/paride/pd.c.old       Sat May  4 12:23:09 2002

 int pd_init (void)

-{       int i;
+{      
        request_queue_t * q;

        if (disable) return -1;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. glibc-2.1.2 compilation error

3. 2.5.15 - i8xx series chipsets patches

4. xdir statically linked

5. LTT patch for 2.5.15

6. setting up.. can linux be sttup on dos D: drive?

7. PATCH mm/slab.c against 2.5.15 (was: slab cache broken on sparc64 )

8. F90 for Linux?

9. PATCH mm/slab.c against 2.5.15 (was: slab cache broken on spa rc64)

10. 2.5.15 : drivers/md/lvm.c compile error

11. [Fwd: Re: 2.5.15 hangs at partition check]

12. Linux 2.5.15-ml3

13. VIA 82C586_1 (KT266 IDE) in 2.5.15