diff options
author | Ji-Ze Hong (Peter Hong) <hpeter@gmail.com> | 2018-01-11 09:47:18 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2018-01-11 13:00:25 +0300 |
commit | f047d35782553ab862003a58b0fcf7e1b542e4f9 (patch) | |
tree | 1b9e5eb637af64459908f46c99ddd875149ab4cf /drivers/scsi/aha1542.h | |
parent | 138651e1186bef33d0d330ca735d85784ee6535b (diff) | |
download | linux-f047d35782553ab862003a58b0fcf7e1b542e4f9.tar.xz |
USB: serial: f81534: only read configuration once
In the original code, We'll read configuration in calc_num_ports()
and read again in attach(). In fact, we can move all content from
attach() to calc_num_ports() to simplify the code.
Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
[ johan: replace commit summary ]
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/scsi/aha1542.h')
0 files changed, 0 insertions, 0 deletions