From: Paulius Zaleckas <paulius.zaleckas@gmail.com>
To: netdev@vger.kernel.org
Cc: Jan Dumon <j.dumon@option.com>,
Greg Kroah-Hartman <gregkh@suse.de>,
"David S. Miller" <davem@davemloft.net>,
Stephen Hemminger <shemminger@vyatta.com>,
"Paulius Zaleckas"@ger.gmane.org
Subject: Re: [PATCH] obsolete config in kernel source (HSO_AUTOPM)
Date: Fri, 05 Feb 2010 16:37:01 +0200 [thread overview]
Message-ID: <4B6C2D0D.6020608@gmail.com> (raw)
In-Reply-To: <20100205133918.GA7077__48535.5327524759$1265377184$gmane$org@faui49.informatik.uni-erlangen.de>
On 02/05/2010 03:39 PM, Christoph Egger wrote:
> Hi all!
>
> As part of the VAMOS[0] research project at the University of
> Erlangen we're checking referential integrity between kernel KConfig
> options and in-code Conditional blocks.
>
> This is just a one-liner commented out unconditionally (due to
> the config not existing) and being like this for virtually ever so I'm
> suggesting to remove it from the kernel tree.
>
> Please keep me informed of this patch getting confirmed /
> merged so we can keep track of it.
>
> Regards
>
> Christoph Egger
>
> [0] http://vamos1.informatik.uni-erlangen.de/
>
> ----
> From 4d76c063b34cffd7b0f175e328f0878f262e6af2 Mon Sep 17 00:00:00 2001
> From: Christoph Egger<siccegge@stud.informatik.uni-erlangen.de>
> Date: Fri, 5 Feb 2010 13:46:21 +0100
> Subject: [PATCH] Remove unreferenced HSO_AUTOPM
>
> CONFIG_HSO_AUTOPM is set by KConfig / set in the Kernel source,
> makefiles and won't be ever set this way, therefor simply removing the
> protected code.
>
> Signed-off-by: Christoph Egger<siccegge@stud.informatik.uni-erlangen.de>
> ---
> drivers/net/usb/hso.c | 3 ---
> 1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
> index 6895f15..be0cc99 100644
> --- a/drivers/net/usb/hso.c
> +++ b/drivers/net/usb/hso.c
> @@ -1155,9 +1155,6 @@ static void _hso_serial_set_termios(struct tty_struct *tty,
> static void hso_resubmit_rx_bulk_urb(struct hso_serial *serial, struct urb *urb)
> {
> int result;
> -#ifdef CONFIG_HSO_AUTOPM
> - usb_mark_last_busy(urb->dev);
> -#endif
Acctually this is bug. usb_mark_last_busy() should be called here.
Can you resend this patch by just removing #ifdef and #endif and
leaving usb_mark_last_busy()?
> /* We are done with this URB, resubmit it. Prep the USB to wait for
> * another frame */
> usb_fill_bulk_urb(urb, serial->parent->usb,
next prev parent reply other threads:[~2010-02-06 14:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-05 13:39 [PATCH] obsolete config in kernel source (HSO_AUTOPM) Christoph Egger
2010-02-05 14:37 ` Paulius Zaleckas [this message]
2010-02-05 14:38 ` Paulius Zaleckas
2010-02-05 15:14 ` Christoph Egger
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=4B6C2D0D.6020608@gmail.com \
--to=paulius.zaleckas@gmail.com \
--cc="Paulius Zaleckas"@ger.gmane.org \
--cc=davem@davemloft.net \
--cc=gregkh@suse.de \
--cc=j.dumon@option.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).