From: Eric Sesterhenn / snakebyte <snakebyte@gmx.de>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] [PATCH 2/2] Remove LINUX_VERSION_CODE check in pwc/pwc-if.c
Date: Wed, 04 Jan 2006 17:12:30 +0000 [thread overview]
Message-ID: <1136394751.4692.6.camel@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
hi,
this patch removes the LINUX_VERSION check in
drivers/usb/media/pwc/pwc-if.c
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
--- linux-2.6.15-eric/drivers/usb/media/pwc/pwc-if.c.orig 2006-01-04 18:03:17.000000000 +0100
+++ linux-2.6.15-eric/drivers/usb/media/pwc/pwc-if.c 2006-01-04 18:03:44.000000000 +0100
@@ -827,13 +827,10 @@ static int pwc_isoc_init(struct pwc_devi
/* Get the current alternate interface, adjust packet size */
if (!udev->actconfig)
return -EFAULT;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,5)
- idesc = &udev->actconfig->interface[0]->altsetting[pdev->valternate];
-#else
+
intf = usb_ifnum_to_if(udev, 0);
if (intf)
idesc = usb_altnum_to_altsetting(intf, pdev->valternate);
-#endif
if (!idesc)
return -EFAULT;
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next reply other threads:[~2006-01-04 17:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-04 17:12 Eric Sesterhenn / snakebyte [this message]
2006-01-04 17:26 ` [KJ] [PATCH 2/2] Remove LINUX_VERSION_CODE check in pwc/pwc-if.c Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1136394751.4692.6.camel@localhost \
--to=snakebyte@gmx.de \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.