[PATCH] Replaced 'return NULL' lines by break in snd_usb_find_desc so there is only one default error.
24 Jan
2009
24 Jan
'09
12:16 p.m.
Signed-off-by: Andreas Bergmeier lcid-fire@gmx.net --- sound/usb/usbaudio.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/usb/usbaudio.c b/sound/usb/usbaudio.c index d35b51c..8b8eb9e 100644 --- a/sound/usb/usbaudio.c +++ b/sound/usb/usbaudio.c @@ -2054,10 +2054,10 @@ void *snd_usb_find_desc(void *descstart, int desclen, void *after, u8 dtype) end = p + desclen; for (; p < end;) { if (p[0] < 2) - return NULL; + break; next = p + p[0]; if (next > end) - return NULL; + break; if (p[1] == dtype && (!after || (void *)p > after)) { return p; }
--
1.5.6.3
--------------050806070602090407040706--
5810
Age (days ago)
5810
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andreas Bergmeier