Skip to content

Commit b789889

Browse files
andy-shevlinusw
authored andcommitted
pinctrl: core: Remove duplicate error messages
pinctrl_claim_hogs() is covered to report any error via message. Since that it's not needed in the callers. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
1 parent 74ac08a commit b789889

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/pinctrl/core.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,10 +2187,8 @@ int pinctrl_enable(struct pinctrl_dev *pctldev)
21872187
int error;
21882188

21892189
error = pinctrl_claim_hogs(pctldev);
2190-
if (error) {
2191-
dev_err(pctldev->dev, "could not claim hogs: %i\n", error);
2190+
if (error)
21922191
return error;
2193-
}
21942192

21952193
mutex_lock(&pinctrldev_list_mutex);
21962194
list_add_tail(&pctldev->node, &pinctrldev_list);

0 commit comments

Comments
 (0)