aboutsummaryrefslogtreecommitdiff
path: root/drivers/extcon/extcon.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2015-03-07 01:41:36 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2015-03-07 22:58:28 +0900
commit34825e511971e193db16a96350faeb60eff0d842 (patch)
tree058226d06629b1ee9fed1523260ffb5ed9b27d47 /drivers/extcon/extcon.c
parentf68a8342b1082d9a4b084cb085396e562899bc62 (diff)
downloadlinux-stericsson-34825e511971e193db16a96350faeb60eff0d842.tar.gz
extcon: Fix the checkpatch warning
This patch fixes the checkpatch warning about coding style. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon.c')
-rw-r--r--drivers/extcon/extcon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
index 8319f25b7145..752ce1208428 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -158,6 +158,7 @@ static ssize_t name_show(struct device *dev, struct device_attribute *attr,
/* Optional callback given by the user */
if (edev->print_name) {
int ret = edev->print_name(edev, buf);
+
if (ret >= 0)
return ret;
}