diff options
author | Ji-Ze Hong (Peter Hong) | 2018-01-11 14:47:18 +0800 |
---|---|---|
committer | Johan Hovold | 2018-01-11 11:00:25 +0100 |
commit | f047d35782553ab862003a58b0fcf7e1b542e4f9 (patch) | |
tree | 1b9e5eb637af64459908f46c99ddd875149ab4cf /mm/memory.c | |
parent | 138651e1186bef33d0d330ca735d85784ee6535b (diff) |
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 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions