Re: [PATCH 1/2] pinctrl: core: Remove unnecessary test for desc->name

2013-08-21 Thread Linus Walleij
On Mon, Aug 19, 2013 at 4:06 AM, Axel Lin wrote: > The implementation in pinctrl_register_one_pin() ensures pindesc->name is > always > not NULL before insert the pindesc to radix tree. > If the desc return from pin_desc_get is not NULL, desc->name is always not > NULL. > > Signed-off-by: Axel

Re: [PATCH 1/2] pinctrl: core: Remove unnecessary test for desc-name

2013-08-21 Thread Linus Walleij
On Mon, Aug 19, 2013 at 4:06 AM, Axel Lin axel@ingics.com wrote: The implementation in pinctrl_register_one_pin() ensures pindesc-name is always not NULL before insert the pindesc to radix tree. If the desc return from pin_desc_get is not NULL, desc-name is always not NULL.

[PATCH 1/2] pinctrl: core: Remove unnecessary test for desc->name

2013-08-18 Thread Axel Lin
The implementation in pinctrl_register_one_pin() ensures pindesc->name is always not NULL before insert the pindesc to radix tree. If the desc return from pin_desc_get is not NULL, desc->name is always not NULL. Signed-off-by: Axel Lin --- drivers/pinctrl/core.c | 4 +--- 1 file changed, 1

[PATCH 1/2] pinctrl: core: Remove unnecessary test for desc-name

2013-08-18 Thread Axel Lin
The implementation in pinctrl_register_one_pin() ensures pindesc-name is always not NULL before insert the pindesc to radix tree. If the desc return from pin_desc_get is not NULL, desc-name is always not NULL. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pinctrl/core.c | 4 +--- 1