]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ALSA: usx2y: Drop no longer used variable
authorTakashi Iwai <tiwai@suse.de>
Fri, 9 Aug 2024 07:56:59 +0000 (09:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 9 Aug 2024 07:57:33 +0000 (09:57 +0200)
The recent conversion to the standard print API included some cleanups
and that changed the code no longer referring to a variable iters at
usb_stream_start().  This caused a compiler warning in the end.
Let's drop the unused variable.

Fixes: f8466d91f36d ("ALSA: usx2y: Use standard print API")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202408090249.8LE9qrae-lkp@intel.com/
Link: https://patch.msgid.link/20240809075700.7320-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/usb_stream.c

index 66ea610aa433e64681fb2afb560c2c2c5e53cfb7..3122cf653273dfaac4cf99401303dc2da9ff5bc7 100644 (file)
@@ -665,7 +665,7 @@ static void i_playback_start(struct urb *urb)
 int usb_stream_start(struct usb_stream_kernel *sk)
 {
        struct usb_stream *s = sk->s;
-       int frame = 0, iters = 0;
+       int frame = 0;
        int u, err;
        int try = 0;
 
@@ -700,7 +700,6 @@ dotry:
                        frame = usb_get_current_frame_number(dev);
                        do {
                                now = usb_get_current_frame_number(dev);
-                               ++iters;
                        } while (now > -1 && now == frame);
                }
                err = usb_submit_urb(inurb, GFP_ATOMIC);