Skip to contentSkip to conversation

staging: vme_user: fix check unbalaced braces

PATCH New Alexon Oliveira 1 participant 1 message Aug 23, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vme_user: fix check unbalaced braces

Fixed all CHECK: Unbalanced braces around else statement and CHECK: braces {} should be used on all arms of this statement, because both are related, as reported by checkpatch to adhere to the Linux kernel coding-style guidelines.

---
 drivers/staging/vme_user/vme.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/vme_user/vme.c +2 -1
index d0366dd3f2b1..ac98b3da6bed 100644
@@ -1866,8 +1866,9 @@ static int __vme_register_driver_bus(struct vme_driver *drv,
 		if (vdev->dev.platform_data) {
 			list_add_tail(&vdev->drv_list, &drv->devices);
 			list_add_tail(&vdev->bridge_list, &bridge->devices);
-		} else
+		} else {
 			device_unregister(&vdev->dev);
+		}
 	}
 	return 0;
 
Signature · 1 line
2.41.0