[PATCH 1/2] drivers/base: fix checkpatch.pl warnings in attribute_container.c (v2)

From: Ayaan Mirza Baig
Date: Thu Feb 27 2025 - 07:45:26 EST


This patch applies only cosmetic changes such as
whitespace fixes, formatting and typos. These
changes are flagged by checkpatch.pl

Signed-off-by: Ayaan Mirza Baig <ayaanmirzabaig85@xxxxxxxxx>
---
drivers/base/attribute_container.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c
index b6f941a6ab69..69637b2ec3bc 100644
--- a/drivers/base/attribute_container.c
+++ b/drivers/base/attribute_container.c
@@ -5,7 +5,7 @@
* Copyright (c) 2005 - James Bottomley <James.Bottomley@xxxxxxxxxxxx>
*
* The basic idea here is to enable a device to be attached to an
- * aritrary numer of classes without having to allocate storage for them.
+ * aritrary number of classes without having to allocate storage for them.
* Instead, the contained classes select the devices they need to attach
* to via a matching function.
*/
@@ -21,7 +21,8 @@
#include "base.h"

/* This is a private structure used to tie the classdev and the
- * container .. it should never be visible outside this file */
+ * container .. it should never be visible outside this file
+ */
struct internal_container {
struct klist_node node;
struct attribute_container *cont;
@@ -449,7 +450,7 @@ attribute_container_remove_attrs(struct device *classdev)

if (cont->grp) {
sysfs_remove_group(&classdev->kobj, cont->grp);
- return ;
+ return;
}

for (i = 0; attrs[i]; i++)
--
2.47.1