OSDN Git Service

net: cdc_ncm: drop redundant driver-data assignment
authorJohan Hovold <johan@kernel.org>
Thu, 18 Mar 2021 16:01:42 +0000 (17:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2021 02:13:42 +0000 (19:13 -0700)
commit269aa0301224dc001676322c0305b0d02c93b7bb
treec0b5a87d73ba194c159c86fea8dbbe8428433d00
parent92a310cdcf8120c2d007254f53b927c89c417fc6
net: cdc_ncm: drop redundant driver-data assignment

The driver data for the data interface has already been set by
usb_driver_claim_interface() so drop the subsequent redundant
assignment.

Note that this also avoids setting the driver data three times in case
of a combined interface.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c