summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus
diff options
context:
space:
mode:
authorDan Jessie <dtjessie@gmail.com>2020-03-29 01:21:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-13 09:55:26 +0300
commitc42f736332a43e7cec61f582909036b5addc707a (patch)
tree14b93994086f2c651c393e38b08c68e93426543f /drivers/staging/greybus
parent8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff)
downloadlinux-c42f736332a43e7cec61f582909036b5addc707a.tar.xz
staging: greybus: hid: remove braces {} around single statement block
This patch fixes the checkpatch.pl warning: WARNING: braces {} are not necessary for single statement blocks This is the only instance of the problem noted by checkpatch.pl in staging: greybus. Signed-off-by: Dan Jessie <dtjessie@gmail.com> Reviewed-by: Alex Elder <elder@linaro.org> Link: https://lore.kernel.org/r/20200328222134.19344-1-dtjessie@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r--drivers/staging/greybus/hid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/greybus/hid.c b/drivers/staging/greybus/hid.c
index 04bfd9110502..ed706f39e87a 100644
--- a/drivers/staging/greybus/hid.c
+++ b/drivers/staging/greybus/hid.c
@@ -290,9 +290,8 @@ static int gb_hid_parse(struct hid_device *hid)
}
rdesc = kzalloc(rsize, GFP_KERNEL);
- if (!rdesc) {
+ if (!rdesc)
return -ENOMEM;
- }
ret = gb_hid_get_report_desc(ghid, rdesc);
if (ret) {