pinctrl: core: Remove unnecessary test for desc->name
authorAxel Lin <axel.lin@ingics.com>
Mon, 19 Aug 2013 02:06:29 +0000 (10:06 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 23 Aug 2013 06:56:29 +0000 (08:56 +0200)
commit6c325f874c9a4b5a783ed6c4a88fdddfc380acb1
treee1e0ce004541036b72541e17e0facaaa98b028de
parente2b86b8481502f3f3039a31aa1a85b8a29e246f1
pinctrl: core: Remove unnecessary test for desc->name

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.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c