Skip to content

Commit

Permalink
USB: serial: visor: drop redundant calc_num_ports callback
Browse files Browse the repository at this point in the history
Drop the redundant calc_num_ports callback from the clie_5 type, for
which the callback always returns zero and hence falls back to the type
num_ports value (2).

Signed-off-by: Johan Hovold <johan@kernel.org>
  • Loading branch information
Johan Hovold committed Mar 28, 2017
1 parent c0dcf24 commit a5b669f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/serial/visor.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ static struct usb_serial_driver clie_5_device = {
.unthrottle = usb_serial_generic_unthrottle,
.attach = clie_5_attach,
.probe = visor_probe,
.calc_num_ports = visor_calc_num_ports,
.read_int_callback = visor_read_int_callback,
};

Expand Down

0 comments on commit a5b669f

Please sign in to comment.