[PATCH 2/2 V2] staging: dgnc: remove redundant null check in

2016-05-26 Thread Daeseok Youn
the "brd" was already checked for NULL before calling dgnc_do_remap(). the dgnc_do_remap() function was called only from the dgnc_found_board() and the DGNC_BOARD_MAGIC value was assigned to "brd->magic" in dgcn_found_board(). So it doesn't need to check about magic value.

Re: [PATCH 1/2] staging: dgnc: remove redundant NULL check for brd

2016-05-26 Thread DaeSeok Youn
2016-05-26 21:29 GMT+09:00 Luis de Bethencourt <lui...@osg.samsung.com>: > On 26/05/16 05:56, DaeSeok Youn wrote: >> 2016-05-26 6:48 GMT+09:00 Luis de Bethencourt <lui...@osg.samsung.com>: >>> On 20/05/16 10:51, Daeseok Youn wrote: >>>> the "brd&qu

Re: [PATCH 1/2] staging: dgnc: remove redundant NULL check for brd

2016-05-26 Thread DaeSeok Youn
2016-05-26 21:29 GMT+09:00 Luis de Bethencourt : > On 26/05/16 05:56, DaeSeok Youn wrote: >> 2016-05-26 6:48 GMT+09:00 Luis de Bethencourt : >>> On 20/05/16 10:51, Daeseok Youn wrote: >>>> the "brd" value cannot be NULL in dgnc_finalize_board_i

Re: [PATCH 2/2] staging: dgnc: remove redundant null check in

2016-05-25 Thread DaeSeok Youn
2016-05-26 7:00 GMT+09:00 Luis de Bethencourt <lui...@osg.samsung.com>: > On 20/05/16 10:51, Daeseok Youn wrote: >> the "brd" was already checked for NULL before calling dgnc_do_remap(). >> >> Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> >&g

Re: [PATCH 2/2] staging: dgnc: remove redundant null check in

2016-05-25 Thread DaeSeok Youn
2016-05-26 7:00 GMT+09:00 Luis de Bethencourt : > On 20/05/16 10:51, Daeseok Youn wrote: >> the "brd" was already checked for NULL before calling dgnc_do_remap(). >> >> Signed-off-by: Daeseok Youn >> --- >> drivers/staging/dgnc/dgnc_driver.c | 3 --- &g

Re: [PATCH 1/2] staging: dgnc: remove redundant NULL check for brd

2016-05-25 Thread DaeSeok Youn
2016-05-26 6:48 GMT+09:00 Luis de Bethencourt <lui...@osg.samsung.com>: > On 20/05/16 10:51, Daeseok Youn wrote: >> the "brd" value cannot be NULL in dgnc_finalize_board_init(). >> Because "brd" as a parameter of this function was already >> chec

Re: [PATCH 1/2] staging: dgnc: remove redundant NULL check for brd

2016-05-25 Thread DaeSeok Youn
2016-05-26 6:48 GMT+09:00 Luis de Bethencourt : > On 20/05/16 10:51, Daeseok Youn wrote: >> the "brd" value cannot be NULL in dgnc_finalize_board_init(). >> Because "brd" as a parameter of this function was already >> checked for NULL. >> >> Si

[PATCH 1/2] staging: dgnc: remove redundant NULL check for brd

2016-05-20 Thread Daeseok Youn
the "brd" value cannot be NULL in dgnc_finalize_board_init(). Because "brd" as a parameter of this function was already checked for NULL. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_driver.c | 3 --- 1 file changed, 3 deletion

[PATCH 1/2] staging: dgnc: remove redundant NULL check for brd

2016-05-20 Thread Daeseok Youn
the "brd" value cannot be NULL in dgnc_finalize_board_init(). Because "brd" as a parameter of this function was already checked for NULL. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/stagin

[PATCH 2/2] staging: dgnc: remove redundant null check in

2016-05-20 Thread Daeseok Youn
the "brd" was already checked for NULL before calling dgnc_do_remap(). Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_driver.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgn

[PATCH 2/2] staging: dgnc: remove redundant null check in

2016-05-20 Thread Daeseok Youn
the "brd" was already checked for NULL before calling dgnc_do_remap(). Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index 22257d2..1882

[PATCH] staging: dgnc: re-arrange functions for removing forward

2016-05-13 Thread Daeseok Youn
Re-arrange the functions for removing forward declarations in dgnc_cls.c file. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- After applying this patch, the object file size was NOT changed. drivers/staging/dgnc/dgnc_cls.c | 949 +++- 1 file c

[PATCH] staging: dgnc: re-arrange functions for removing forward

2016-05-13 Thread Daeseok Youn
Re-arrange the functions for removing forward declarations in dgnc_cls.c file. Signed-off-by: Daeseok Youn --- After applying this patch, the object file size was NOT changed. drivers/staging/dgnc/dgnc_cls.c | 949 +++- 1 file changed, 460 insertions(+), 489

[PATCH 3/3] staging: dgnc: removes redundant null check and change

2016-05-12 Thread Daeseok Youn
The dgnc_set_modem_info() used only channel_t variable. Any other variables were used only for checking NULL. So fist parameter changed from "tty_struct" to "channel_t" and useless NULL checks and variables are removed. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.co

[PATCH 3/3] staging: dgnc: removes redundant null check and change

2016-05-12 Thread Daeseok Youn
The dgnc_set_modem_info() used only channel_t variable. Any other variables were used only for checking NULL. So fist parameter changed from "tty_struct" to "channel_t" and useless NULL checks and variables are removed. Signed-off-by: Daeseok Youn --- drivers/staging/

[PATCH 1/3] staging: dgnc: remove redundant local variable for

2016-05-12 Thread Daeseok Youn
The local variable "bd" was not used in dgnc_carrier() function. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_tty.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty

[PATCH 1/3] staging: dgnc: remove redundant local variable for

2016-05-12 Thread Daeseok Youn
The local variable "bd" was not used in dgnc_carrier() function. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index a505775..52a1

[PATCH 2/3] staging: dgnc: remove redundant variable null check

2016-05-12 Thread Daeseok Youn
The unit struct(un_t) was not used in dgnc_tty_hangup(). Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_tty.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 52a1613..5

[PATCH 2/3] staging: dgnc: remove redundant variable null check

2016-05-12 Thread Daeseok Youn
The unit struct(un_t) was not used in dgnc_tty_hangup(). Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 52a1613..5119bcb 100644 --- a/drivers/staging

[PATCH 2/2 RESEND] staging: dgnc: remove useless error value assignment

2016-05-10 Thread Daeseok Youn
The "result" variable in dgnc_get_mstat() was initialized with "-EIO". But if the "ch" is not null, "result" will be set to zero and if the "ch" is null, dgnc_get_mstat() will return "-ENXIO" as an error. So "-EIO" err

[PATCH 2/2 RESEND] staging: dgnc: remove useless error value assignment

2016-05-10 Thread Daeseok Youn
The "result" variable in dgnc_get_mstat() was initialized with "-EIO". But if the "ch" is not null, "result" will be set to zero and if the "ch" is null, dgnc_get_mstat() will return "-ENXIO" as an error. So "-EIO" err

[PATCH 1/2 RESEND] staging: dgnc: remove redundant NULL checks in

2016-05-10 Thread Daeseok Youn
The dgnc_block_til_ready() is only used in dgnc_tty_open(). The unit data(struct un_t) was stored into tty->driver_data in dgnc_tty_open(). And also tty and un were tested about NULL so these variables doesn't need to check for NULL in dgnc_block_til_ready(). Signed-off-by: Daeseok Y

[PATCH 1/2 RESEND] staging: dgnc: remove redundant NULL checks in

2016-05-10 Thread Daeseok Youn
The dgnc_block_til_ready() is only used in dgnc_tty_open(). The unit data(struct un_t) was stored into tty->driver_data in dgnc_tty_open(). And also tty and un were tested about NULL so these variables doesn't need to check for NULL in dgnc_block_til_ready(). Signed-off-by: Daeseok Y

Re: [PATCH 1/3] staging: dgnc: remove redundant NULL check in

2016-05-09 Thread DaeSeok Youn
2016-05-09 21:08 GMT+09:00 Greg KH <gre...@linuxfoundation.org>: > On Wed, May 04, 2016 at 02:13:04PM +0900, Daeseok Youn wrote: >> tty and ch are already checked for NULL >> before calling dgnc_block_til_ready(). >> >> Signed-off-by: Daeseok Youn <daeseok.y

Re: [PATCH 2/3] staging: dgnc: remove useless assigned error value in

2016-05-09 Thread DaeSeok Youn
2016-05-09 21:09 GMT+09:00 Greg KH <gre...@linuxfoundation.org>: > On Wed, May 04, 2016 at 02:13:26PM +0900, Daeseok Youn wrote: >> the result in dgnc_get_mstat() was initialized with -EIO but >> there are no use of EIO as a result in this function. >> >> Signe

Re: [PATCH 1/3] staging: dgnc: remove redundant NULL check in

2016-05-09 Thread DaeSeok Youn
2016-05-09 21:08 GMT+09:00 Greg KH : > On Wed, May 04, 2016 at 02:13:04PM +0900, Daeseok Youn wrote: >> tty and ch are already checked for NULL >> before calling dgnc_block_til_ready(). >> >> Signed-off-by: Daeseok Youn > > Your subject line doesn't make sense, p

Re: [PATCH 2/3] staging: dgnc: remove useless assigned error value in

2016-05-09 Thread DaeSeok Youn
2016-05-09 21:09 GMT+09:00 Greg KH : > On Wed, May 04, 2016 at 02:13:26PM +0900, Daeseok Youn wrote: >> the result in dgnc_get_mstat() was initialized with -EIO but >> there are no use of EIO as a result in this function. >> >> Signed-off-by: Daeseok Youn >

[PATCH 3/3] staging: dgnc: Need to check for NULL of ch

2016-05-08 Thread Daeseok Youn
the "ch" from brd structure could be NULL, it need to check for NULL. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_neo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging

[PATCH 3/3] staging: dgnc: Need to check for NULL of ch

2016-05-08 Thread Daeseok Youn
the "ch" from brd structure could be NULL, it need to check for NULL. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 9eae1a

[PATCH 1/3] staging: dgnc: fix 'line over 80 characters'

2016-05-08 Thread Daeseok Youn
fix checkpatch.pl warning about 'line over 80 characters'. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_sysfs.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/s

[PATCH 1/3] staging: dgnc: fix 'line over 80 characters'

2016-05-08 Thread Daeseok Youn
fix checkpatch.pl warning about 'line over 80 characters'. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_sysfs.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/staging/dgnc/dgnc_sysfs.c index

[PATCH 2/3] staging: dgnc: remove redundant condition check

2016-05-08 Thread Daeseok Youn
dgnc_board(brd) was already checked for NULL before calling neo_parse_isr(). And also port doesn't need to check. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_neo.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_n

[PATCH 2/3] staging: dgnc: remove redundant condition check

2016-05-08 Thread Daeseok Youn
dgnc_board(brd) was already checked for NULL before calling neo_parse_isr(). And also port doesn't need to check. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc

[PATCH] staging: dgnc: Fix a NULL pointer dereference

2016-05-03 Thread Daeseok Youn
Carpenter <dan.carpen...@oracle.com> Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_tty.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 2

[PATCH] staging: dgnc: Fix a NULL pointer dereference

2016-05-03 Thread Daeseok Youn
Carpenter Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 2cecdb0..392d532 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drive

[PATCH 3/3] staging: dgnc: clean up the dgnc_get_modem_info()

2016-05-03 Thread Daeseok Youn
the "ch" in dgnc_get_modem_info() was already checked before calling this function and also if "ch" is not NULL, dgnc_get_mstat() returns valid value so it doesn't need to check an error. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/st

[PATCH 3/3] staging: dgnc: clean up the dgnc_get_modem_info()

2016-05-03 Thread Daeseok Youn
the "ch" in dgnc_get_modem_info() was already checked before calling this function and also if "ch" is not NULL, dgnc_get_mstat() returns valid value so it doesn't need to check an error. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 12 +--

[PATCH 2/3] staging: dgnc: remove useless assigned error value in

2016-05-03 Thread Daeseok Youn
the result in dgnc_get_mstat() was initialized with -EIO but there are no use of EIO as a result in this function. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_tty.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/stagin

[PATCH 2/3] staging: dgnc: remove useless assigned error value in

2016-05-03 Thread Daeseok Youn
the result in dgnc_get_mstat() was initialized with -EIO but there are no use of EIO as a result in this function. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers

[PATCH 1/3] staging: dgnc: remove redundant NULL check in

2016-05-03 Thread Daeseok Youn
tty and ch are already checked for NULL before calling dgnc_block_til_ready(). Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_tty.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/s

[PATCH 1/3] staging: dgnc: remove redundant NULL check in

2016-05-03 Thread Daeseok Youn
tty and ch are already checked for NULL before calling dgnc_block_til_ready(). Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index

[PATCH] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-04-13 Thread Daeseok Youn
The tty_alloc_driver() can allocate memory for ttys and termios. And also allocated memory will be released easily with put_tty_driver() call. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_driver.h | 4 +- drivers/staging/dgnc/dgnc_tty.c

[PATCH] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-04-13 Thread Daeseok Youn
The tty_alloc_driver() can allocate memory for ttys and termios. And also allocated memory will be released easily with put_tty_driver() call. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.h | 4 +- drivers/staging/dgnc/dgnc_tty.c| 144

[PATCH 2/2] staging: dgnc: remove redundant NULL check in

2016-04-05 Thread Daeseok Youn
There were already checking NULL about channel_t / un_t before calling dgnc_maxcps_room(). Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_tty.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/staging/dgnc/dgnc

[PATCH 2/2] staging: dgnc: remove redundant NULL check in

2016-04-05 Thread Daeseok Youn
There were already checking NULL about channel_t / un_t before calling dgnc_maxcps_room(). Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc

[PATCH 1/2] staging: dgnc: return -ENOMEM when kzalloc failed

2016-04-05 Thread Daeseok Youn
The kzalloc can be failed when memory is not enough to allocate. When kzalloc failed, it need to return error code with ENOMEM Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_tty.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/stagin

[PATCH 1/2] staging: dgnc: return -ENOMEM when kzalloc failed

2016-04-05 Thread Daeseok Youn
The kzalloc can be failed when memory is not enough to allocate. When kzalloc failed, it need to return error code with ENOMEM Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers

[PATCH 1/2] staging: dgnc: remove parenthesis around the CONST |

2016-04-04 Thread Daeseok Youn
remove parenthesis around the CONST | CONST. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_cls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_cls.c b/drivers/staging/dgnc/dgnc_cls.c index 5e46ac8..4

[PATCH 2/2] staging: dgnc: remove blank line

2016-04-04 Thread Daeseok Youn
fix checkpatch.pl warning: Blank lines aren't necessary after an open brace '{' Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_neo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c

[PATCH 2/2] staging: dgnc: remove blank line

2016-04-04 Thread Daeseok Youn
fix checkpatch.pl warning: Blank lines aren't necessary after an open brace '{' Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 2da6a72..3b8ce38 100644

[PATCH 1/2] staging: dgnc: remove parenthesis around the CONST |

2016-04-04 Thread Daeseok Youn
remove parenthesis around the CONST | CONST. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_cls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_cls.c b/drivers/staging/dgnc/dgnc_cls.c index 5e46ac8..46c050c 100644 --- a/drivers/staging

[PATCH 2/2] staging: dgnc: fix CamelCase in dgnc_tty.c

2016-04-01 Thread Daeseok Youn
fix checkpatch.pl warning about 'Avoid CamelCase' Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_tty.c | 2 +- drivers/staging/dgnc/digi.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/d

[PATCH 2/2] staging: dgnc: fix CamelCase in dgnc_tty.c

2016-04-01 Thread Daeseok Youn
fix checkpatch.pl warning about 'Avoid CamelCase' Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 2 +- drivers/staging/dgnc/digi.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c

[PATCH 1/2] staging: dgnc: remove too many traverse pointer

2016-04-01 Thread Daeseok Youn
The "ch->ch_bd" is already assined to "bd" but this is only for checking null or MAGIC number. in the dgnc_tty_ioctl function, bd can be used for referencing to board_ops structure. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers

[PATCH 1/2] staging: dgnc: remove too many traverse pointer

2016-04-01 Thread Daeseok Youn
The "ch->ch_bd" is already assined to "bd" but this is only for checking null or MAGIC number. in the dgnc_tty_ioctl function, bd can be used for referencing to board_ops structure. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 37 +

[PATCH 2/2] staging: dgnc: clean up dgnc_input function

2016-03-31 Thread Daeseok Youn
This is for fixing checkpatch.pl warning about "Alignment should match open parenthesis" but if that is fixed, code line is over 80 characters. I think "ch->ch_rqueue + tail + i" could be declared once in the begining of loop. Signed-off-by: Daeseok Youn <daeseok.y.

[PATCH 2/2] staging: dgnc: clean up dgnc_input function

2016-03-31 Thread Daeseok Youn
This is for fixing checkpatch.pl warning about "Alignment should match open parenthesis" but if that is fixed, code line is over 80 characters. I think "ch->ch_rqueue + tail + i" could be declared once in the begining of loop. Signed-off-by: Daeseok Youn --- drivers/stagi

[PATCH 1/2] staging: dgnc: remove useless variables for saving tty's

2016-03-31 Thread Daeseok Youn
It doesn't need to save major number with variable. And there are no use of these variables(dgnc_serial_major and dgnc_transparent_print_major) Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_driver.h | 3 --- drivers/staging/dgnc/dgnc_tty.c| 4 -

[PATCH 1/2] staging: dgnc: remove useless variables for saving tty's

2016-03-31 Thread Daeseok Youn
It doesn't need to save major number with variable. And there are no use of these variables(dgnc_serial_major and dgnc_transparent_print_major) Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.h | 3 --- drivers/staging/dgnc/dgnc_tty.c| 4 2 files changed, 7 deletions

[PATCH 3/3] staging: dgnc: fix Logical continuations.

2016-03-28 Thread Daeseok Youn
fix checkpatch.pl warning about 'Logical continuations should be on the previous line' Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_neo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/d

[PATCH 2/3] staging: dgnc: fix 'line over 80 characters'

2016-03-28 Thread Daeseok Youn
fix checkpatch.pl warning about 'line over 80 characters'. I just moved all line comment to above if statement. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_neo.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/d

[PATCH 3/3] staging: dgnc: fix Logical continuations.

2016-03-28 Thread Daeseok Youn
fix checkpatch.pl warning about 'Logical continuations should be on the previous line' Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c

[PATCH 2/3] staging: dgnc: fix 'line over 80 characters'

2016-03-28 Thread Daeseok Youn
fix checkpatch.pl warning about 'line over 80 characters'. I just moved all line comment to above if statement. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b

[PATCH 1/3] staging: dgnc: remove parenthesis around the CONST |

2016-03-28 Thread Daeseok Youn
remove parenthesis around the CONST | CONST. It will be also fixed checkpatch.pl warning about "Alignment should match open parenthesis" becasue parenthesis were removed by this patch. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc

[PATCH 1/3] staging: dgnc: remove parenthesis around the CONST |

2016-03-28 Thread Daeseok Youn
remove parenthesis around the CONST | CONST. It will be also fixed checkpatch.pl warning about "Alignment should match open parenthesis" becasue parenthesis were removed by this patch. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 26 +---

[PATCH V2] staging: dgnc: replace dgnc_offset_table with bit shift.

2016-03-27 Thread Daeseok Youn
the dgnc_offset_table has a same value with (1 << port). So I tried to replace dgnc_offset_table array with 1 << port. And also there are redundant assignments(tmp and current_port) inside while loop for checking uart port, and remove them. Signed-off-by: Daeseok Youn <daeseok

[PATCH V2] staging: dgnc: replace dgnc_offset_table with bit shift.

2016-03-27 Thread Daeseok Youn
the dgnc_offset_table has a same value with (1 << port). So I tried to replace dgnc_offset_table array with 1 << port. And also there are redundant assignments(tmp and current_port) inside while loop for checking uart port, and remove them. Signed-off-by: Daeseok Youn --- V2: clea

Re: [PATCH] staging: dgnc: replace dgnc_offset_table with bit shift.

2016-03-27 Thread DaeSeok Youn
2016-03-25 22:15 GMT+09:00 walter harms <wha...@bfs.de>: > > > Am 25.03.2016 12:33, schrieb Daeseok Youn: >> the dgnc_offset_table has a same value with (1 << port). >> So I tried to replace dgnc_offset_table array with 1 << port. >> And also there a

Re: [PATCH] staging: dgnc: replace dgnc_offset_table with bit shift.

2016-03-27 Thread DaeSeok Youn
2016-03-25 22:15 GMT+09:00 walter harms : > > > Am 25.03.2016 12:33, schrieb Daeseok Youn: >> the dgnc_offset_table has a same value with (1 << port). >> So I tried to replace dgnc_offset_table array with 1 << port. >> And also there are redundant assignment

[PATCH] staging: dgnc: replace dgnc_offset_table with bit shift.

2016-03-25 Thread Daeseok Youn
the dgnc_offset_table has a same value with (1 << port). So I tried to replace dgnc_offset_table array with 1 << port. And also there are redundant assignments(tmp and current_port) inside while loop for checking uart port, and remove them. Signed-off-by: Daeseok Youn <daeseok

[PATCH] staging: dgnc: replace dgnc_offset_table with bit shift.

2016-03-25 Thread Daeseok Youn
the dgnc_offset_table has a same value with (1 << port). So I tried to replace dgnc_offset_table array with 1 << port. And also there are redundant assignments(tmp and current_port) inside while loop for checking uart port, and remove them. Signed-off-by: Daeseok Youn --- Greg

Re: [PATCH 1/2] staging: dgnc: fix 'line over 80 characters'

2016-03-24 Thread DaeSeok Youn
2016-03-25 12:19 GMT+09:00 Joe Perches <j...@perches.com>: > On Fri, 2016-03-25 at 11:44 +0900, Daeseok Youn wrote: >> fix checkpatch.pl warning about 'line over 80 characters' >> in dgnc_neo.c > [] >> diff --git a/drivers/staging/dgnc/dgnc_neo.c >&g

Re: [PATCH 1/2] staging: dgnc: fix 'line over 80 characters'

2016-03-24 Thread DaeSeok Youn
2016-03-25 12:19 GMT+09:00 Joe Perches : > On Fri, 2016-03-25 at 11:44 +0900, Daeseok Youn wrote: >> fix checkpatch.pl warning about 'line over 80 characters' >> in dgnc_neo.c > [] >> diff --git a/drivers/staging/dgnc/dgnc_neo.c >> b/drivers/staging/dgnc/dgn

[PATCH 2/2] staging: dgnc: fix Logical continuations should be on the

2016-03-24 Thread Daeseok Youn
fix checkpatch.pl warning about 'Logical continuations should be on the previous line' in dgnc_neo.c file. I think the 'force' need to check first, because if the 'force' is true, it doesn't need to call another function call. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- d

[PATCH 2/2] staging: dgnc: fix Logical continuations should be on the

2016-03-24 Thread Daeseok Youn
fix checkpatch.pl warning about 'Logical continuations should be on the previous line' in dgnc_neo.c file. I think the 'force' need to check first, because if the 'force' is true, it doesn't need to call another function call. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 4

[PATCH 1/2] staging: dgnc: fix 'line over 80 characters'

2016-03-24 Thread Daeseok Youn
fix checkpatch.pl warning about 'line over 80 characters' in dgnc_neo.c Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_neo.c | 66 +++-- 1 file changed, 44 insertions(+), 22 deletions(-) diff --git a/drivers/stagin

[PATCH 1/2] staging: dgnc: fix 'line over 80 characters'

2016-03-24 Thread Daeseok Youn
fix checkpatch.pl warning about 'line over 80 characters' in dgnc_neo.c Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 66 +++-- 1 file changed, 44 insertions(+), 22 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers

[PATCH 1/2] staging: dgnc: fix CamelCase in dgnc_drvier.h and

2016-03-24 Thread Daeseok Youn
fix checkpatch.pl warning about CamelCase Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_driver.h | 12 ++-- drivers/staging/dgnc/dgnc_tty.c| 32 2 files changed, 22 insertions(+), 22 deletions(-) diff

[PATCH 1/2] staging: dgnc: fix CamelCase in dgnc_drvier.h and

2016-03-24 Thread Daeseok Youn
fix checkpatch.pl warning about CamelCase Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.h | 12 ++-- drivers/staging/dgnc/dgnc_tty.c| 32 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/staging/dgnc

[PATCH 2/2] staging: dgnc: remove unused variable in dgnc_board

2016-03-24 Thread Daeseok Youn
TtyRefCnt was not used anywhere in dgnc. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_driver.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h index 3d8e15f..44216ae

[PATCH 2/2] staging: dgnc: remove unused variable in dgnc_board

2016-03-24 Thread Daeseok Youn
TtyRefCnt was not used anywhere in dgnc. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h index 3d8e15f..44216ae 100644 --- a/drivers/staging/dgnc

[PATCH V2] staging: dgnc: fix CamelCase in dgnc_driver.c

2016-03-23 Thread Daeseok Youn
fix checkpatch.pl warning about CamelCase. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- V2: fix build errors reported by kbuild test robot. And also save the attached .config file to my linux build tree. build successfully without any errors. drivers/stagin

[PATCH V2] staging: dgnc: fix CamelCase in dgnc_driver.c

2016-03-23 Thread Daeseok Youn
fix checkpatch.pl warning about CamelCase. Signed-off-by: Daeseok Youn --- V2: fix build errors reported by kbuild test robot. And also save the attached .config file to my linux build tree. build successfully without any errors. drivers/staging/dgnc/dgnc_driver.c | 52

[PATCH] staging: dgnc: fix CamelCase in dgnc_driver.c

2016-03-22 Thread Daeseok Youn
fix checkpatch.pl warning about CamelCase. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_driver.c | 52 +++--- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.c b/d

[PATCH] staging: dgnc: fix CamelCase in dgnc_driver.c

2016-03-22 Thread Daeseok Youn
fix checkpatch.pl warning about CamelCase. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.c | 52 +++--- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-22 Thread DaeSeok Youn
2016-03-22 22:02 GMT+09:00 Greg KH <gre...@linuxfoundation.org>: > On Tue, Mar 22, 2016 at 04:40:24PM +0900, DaeSeok Youn wrote: >> 2016-03-22 6:05 GMT+09:00 Greg KH <gre...@linuxfoundation.org>: >> > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote: &g

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-22 Thread DaeSeok Youn
2016-03-22 22:02 GMT+09:00 Greg KH : > On Tue, Mar 22, 2016 at 04:40:24PM +0900, DaeSeok Youn wrote: >> 2016-03-22 6:05 GMT+09:00 Greg KH : >> > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote: >> >> the tty_alloc_driver() can allocate memory for tt

Re: [PATCH] staging: dgnc: fix camelcase of SerialDriver and PrintDriver

2016-03-22 Thread DaeSeok Youn
is module. (I had been fixing issues dgap module that was removed in linux-next branch. dgnc has same issues what dgap has. I can also fix issues in dgnc module.) Thanks for comment. regards, Daeseok. > > just my two cents > > re, > wh > > Am 22.03.2016 10:20, schrieb Daese

Re: [PATCH] staging: dgnc: fix camelcase of SerialDriver and PrintDriver

2016-03-22 Thread DaeSeok Youn
been fixing issues dgap module that was removed in linux-next branch. dgnc has same issues what dgap has. I can also fix issues in dgnc module.) Thanks for comment. regards, Daeseok. > > just my two cents > > re, > wh > > Am 22.03.2016 10:20, schrieb Daeseok Youn: >> fix th

[PATCH] staging: dgnc: fix camelcase of SerialDriver and PrintDriver

2016-03-22 Thread Daeseok Youn
fix the checkpatch.pl warning about CamelCase. Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_driver.h | 4 +- drivers/staging/dgnc/dgnc_tty.c| 118 ++--- 2 files changed, 61 insertions(+), 61 deletions(-) diff

[PATCH] staging: dgnc: fix camelcase of SerialDriver and PrintDriver

2016-03-22 Thread Daeseok Youn
fix the checkpatch.pl warning about CamelCase. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.h | 4 +- drivers/staging/dgnc/dgnc_tty.c| 118 ++--- 2 files changed, 61 insertions(+), 61 deletions(-) diff --git a/drivers/staging/dgnc

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-22 Thread DaeSeok Youn
2016-03-22 6:05 GMT+09:00 Greg KH <gre...@linuxfoundation.org>: > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote: >> the tty_alloc_driver() can allocate memory for ttys and termios. >> And also it can release allocated memory easly with using >> put_tty

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-22 Thread DaeSeok Youn
2016-03-22 6:05 GMT+09:00 Greg KH : > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote: >> the tty_alloc_driver() can allocate memory for ttys and termios. >> And also it can release allocated memory easly with using >> put_tty_driver(). >> >> Signed-

Re: [PATCH 2/3] staging: dgnc: use pointer type of tty_struct

2016-03-22 Thread DaeSeok Youn
2016-03-22 6:05 GMT+09:00 Greg KH <gre...@linuxfoundation.org>: > On Mon, Mar 14, 2016 at 01:28:31PM +0900, Daeseok Youn wrote: >> For using tty_alloc_driver, SerialDriver has to be pointer type. > > Yes, but you aren't calling tty_alloc_driver, so this patch totally >

Re: [PATCH 2/3] staging: dgnc: use pointer type of tty_struct

2016-03-22 Thread DaeSeok Youn
2016-03-22 6:05 GMT+09:00 Greg KH : > On Mon, Mar 14, 2016 at 01:28:31PM +0900, Daeseok Youn wrote: >> For using tty_alloc_driver, SerialDriver has to be pointer type. > > Yes, but you aren't calling tty_alloc_driver, so this patch totally > breaks the working code :(

Re: [PATCH 1/3] staging: dgnc: fix camelcase of SerialDriver and

2016-03-22 Thread DaeSeok Youn
2016-03-22 6:02 GMT+09:00 Greg KH <gre...@linuxfoundation.org>: > On Mon, Mar 14, 2016 at 01:28:01PM +0900, Daeseok Youn wrote: >> Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> > > Your subject: does not make sense, and I can't take a patch without any > cha

Re: [PATCH 1/3] staging: dgnc: fix camelcase of SerialDriver and

2016-03-22 Thread DaeSeok Youn
2016-03-22 6:02 GMT+09:00 Greg KH : > On Mon, Mar 14, 2016 at 01:28:01PM +0900, Daeseok Youn wrote: >> Signed-off-by: Daeseok Youn > > Your subject: does not make sense, and I can't take a patch without any > changelog entry :( ok. I will add comment to changelog entry and re

[PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-13 Thread Daeseok Youn
the tty_alloc_driver() can allocate memory for ttys and termios. And also it can release allocated memory easly with using put_tty_driver(). Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_tty.c | 86 +++-- 1 file chang

[PATCH 1/3] staging: dgnc: fix camelcase of SerialDriver and

2016-03-13 Thread Daeseok Youn
Signed-off-by: Daeseok Youn <daeseok.y...@gmail.com> --- drivers/staging/dgnc/dgnc_driver.h | 4 +- drivers/staging/dgnc/dgnc_tty.c| 118 ++--- 2 files changed, 61 insertions(+), 61 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b/d

[PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-13 Thread Daeseok Youn
the tty_alloc_driver() can allocate memory for ttys and termios. And also it can release allocated memory easly with using put_tty_driver(). Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_tty.c | 86 +++-- 1 file changed, 31 insertions(+), 55

<    1   2   3   4   5   6   7   8   9   10   >