From: Dan Jessie Date: Sat, 28 Mar 2020 22:21:35 +0000 (-0400) Subject: staging: greybus: hid: remove braces {} around single statement block X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c42f736332a43e7cec61f582909036b5addc707a;p=linux.git 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 Reviewed-by: Alex Elder Link: https://lore.kernel.org/r/20200328222134.19344-1-dtjessie@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/hid.c b/drivers/staging/greybus/hid.c index 04bfd91105025..ed706f39e87a1 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) {