public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] hso: Fix interface order/creation when disabled_net=1
@ 2009-11-19  8:44 Martin Schiller
  0 siblings, 0 replies; only message in thread
From: Martin Schiller @ 2009-11-19  8:44 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel


This patch stops the useless creation of an serial ttyHS<x> for the
Network Port, when disable_net=1 is set. By that, the order of the
ttyHS<x> is always the same, regardless if disable_net is set or not.

Signed-off-by: Martin Schiller <mschiller@tdt.de>
---

--- linux-2.6.32-rc7-git3/drivers/net/usb/hso.c.orig 2009-11-19 09:08:17.000000000 +0100
+++ linux-2.6.32-rc7-git3/drivers/net/usb/hso.c 2009-11-19 09:10:36.000000000 +0100
@@ -2984,9 +2984,10 @@ static int hso_probe(struct usb_interfac
 
  case HSO_INTF_BULK:
   /* It's a regular bulk interface */
-  if (((port_spec & HSO_PORT_MASK) == HSO_PORT_NETWORK)
-      && !disable_net)
+  if ((port_spec & HSO_PORT_MASK) == HSO_PORT_NETWORK) {
+      if (!disable_net)
    hso_dev = hso_create_net_device(interface, port_spec);
+  }
   else
    hso_dev =
        hso_create_bulk_serial_device(interface, port_spec);



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-19  8:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19  8:44 [PATCH 3/3] hso: Fix interface order/creation when disabled_net=1 Martin Schiller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox