Commit c42f7363 authored by Dan Jessie's avatar Dan Jessie Committed by Greg Kroah-Hartman

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: default avatarDan Jessie <dtjessie@gmail.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20200328222134.19344-1-dtjessie@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8f3d9f35
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment