Merge branch 'for-4.19/upstream' into for-linus
[sfrench/cifs-2.6.git] / drivers / hid / hid-ntrig.c
index 43b1c72343162ea09e4ed5bbe99581fc826565be..9bc6f4867cb3b82e0b0eb9202ce6b20b4eb548a7 100644 (file)
@@ -955,6 +955,8 @@ static int ntrig_probe(struct hid_device *hdev, const struct hid_device_id *id)
 
        ret = sysfs_create_group(&hdev->dev.kobj,
                        &ntrig_attribute_group);
+       if (ret)
+               hid_err(hdev, "cannot create sysfs group\n");
 
        return 0;
 err_free: