Re: [PATCH 2/2] staging: dgnc: refactor the dgnc_maxcps_room() to improve

2016-08-21 Thread Greg KH
On Fri, Aug 19, 2016 at 10:05:19AM +0900, Daeseok Youn wrote: > The whole code in dgnc_maxcps_room() function surrounds with > one if-statement for checking channel's maxcps and buffer size. > I tried to separate the logic for this function from if-condition. > > Signed-off-by: Daeseok Youn

[PATCH 2/2] staging: dgnc: refactor the dgnc_maxcps_room() to improve

2016-08-18 Thread Daeseok Youn
The whole code in dgnc_maxcps_room() function surrounds with one if-statement for checking channel's maxcps and buffer size. I tried to separate the logic for this function from if-condition. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 46