Revert "pinctrl: single: fix potential NULL dereference in pcs_get_function()"
This reverts commit d6e934ecd6
.
This commit is contained in:
parent
8b24cf4850
commit
cc2f1bd0df
1 changed files with 0 additions and 2 deletions
|
@ -350,8 +350,6 @@ static int pcs_get_function(struct pinctrl_dev *pctldev, unsigned pin,
|
|||
return -ENOTSUPP;
|
||||
fselector = setting->func;
|
||||
function = pinmux_generic_get_function(pctldev, fselector);
|
||||
if (!function)
|
||||
return -EINVAL;
|
||||
*func = function->data;
|
||||
if (!(*func)) {
|
||||
dev_err(pcs->dev, "%s could not find function%i\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue