staging: greybus: hid: remove braces {} around single statement block
authorDan Jessie <dtjessie@gmail.com>
Sat, 28 Mar 2020 22:21:35 +0000 (18:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 06:55:26 +0000 (08:55 +0200)
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>
drivers/staging/greybus/hid.c

index 04bfd91105025d213593680f1e91f1f7edf06b9b..ed706f39e87a198a174d9498df270606bde6686b 100644 (file)
@@ -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) {