Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andy Shevchenko and committed by
Linus Walleij
b789889f 74ac08a7

+1 -3
+1 -3
drivers/pinctrl/core.c
··· 2187 2187 int error; 2188 2188 2189 2189 error = pinctrl_claim_hogs(pctldev); 2190 - if (error) { 2191 - dev_err(pctldev->dev, "could not claim hogs: %i\n", error); 2190 + if (error) 2192 2191 return error; 2193 - } 2194 2192 2195 2193 mutex_lock(&pinctrldev_list_mutex); 2196 2194 list_add_tail(&pctldev->node, &pinctrldev_list);