[2.6 patch] usbusx2yaudio.c: remove an unused variable

From: Adrian Bunk (bunk_at_stusta.de)
Date: 01/30/05

  • Next message: Adrian Bunk: "[2.6 patch] add compiler-gcc4.h"
    Date:	Sun, 30 Jan 2005 14:03:14 +0100
    To: greg@kroah.com, perex@suse.cz
    
    

    In 2.6.11-rc a completely unused variable was added, resulting in the
    following compile warning:

    <-- snip -->

    ...
      CC sound/usb/usx2y/usx2yhwdeppcm.o
    In file included from sound/usb/usx2y/usx2yhwdeppcm.c:53:
    sound/usb/usx2y/usbusx2yaudio.c: In function `usX2Y_urbs_allocate':
    sound/usb/usx2y/usbusx2yaudio.c:418: warning: unused variable `ep'
    ...

    <-- snip -->

    This patch removes this unused variable.

    Signed-off-by: Adrian Bunk <bunk@stusta.de>

    --- linux-2.6.11-rc2-mm2-full/sound/usb/usx2y/usbusx2yaudio.c.old 2005-01-30 12:26:58.000000000 +0100
    +++ linux-2.6.11-rc2-mm2-full/sound/usb/usx2y/usbusx2yaudio.c 2005-01-30 12:27:03.000000000 +0100
    @@ -415,7 +415,6 @@
             unsigned int pipe;
             int is_playback = subs == subs->usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK];
             struct usb_device *dev = subs->usX2Y->chip.dev;
    - struct usb_host_endpoint *ep;
     
             pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) :
                             usb_rcvisocpipe(dev, subs->endpoint);

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Adrian Bunk: "[2.6 patch] add compiler-gcc4.h"

    Relevant Pages

    • [2.4 patch] fix a compile warning in amd76x_pm.c (fwd)
      ... [2.4 patch] fix a compile warning in amd76x_pm.c ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [2.6 patch] fix NCR53C9x.c compile warning (fwd)
      ... The trivial patch forwarded below still applies and compiles against ... I got the following compile warning in 2.6.0-test11-mm1: ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • RE: Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271)
      ... I think the patch should be included in the official kernel ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • [2.6 patch] cdrom.c: make several functions static (fwd)
      ... The patch forwarded below still applies and compiles against ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ... There had been need of rain for many days. ...
      (Linux-Kernel)
    • [2.6 patch] some parport_pc.c cleanups (fwd)
      ... The patch forwarded below still applies and compiles against ... extern struct parport *parport_pc_probe_port (unsigned long base, ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)