]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: greybus: loopback: remove unused argument from macro
authorGiacomo Di Clerico <giacomodiclerico@gmail.com>
Sun, 15 Mar 2026 10:58:53 +0000 (11:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2026 15:49:22 +0000 (16:49 +0100)
The gb_dev_loopback_ro_attr macro accepted a 'conn' argument which
was never used in its expansion. Remove it from both the macro
definition and its invocation.

Signed-off-by: Giacomo Di Clerico <giacomodiclerico@gmail.com>
Link: https://patch.msgid.link/20260315105853.34609-1-giacomodiclerico@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/loopback.c

index 3a502d89d19f69879b84733f7f4c67d525515fb7..ea57b1f5d15628f08a66da90a17a504c22b97b38 100644 (file)
@@ -193,7 +193,7 @@ static ssize_t field##_store(struct device *dev,                    \
 }                                                                      \
 static DEVICE_ATTR_RW(field)
 
-#define gb_dev_loopback_ro_attr(field, conn)                           \
+#define gb_dev_loopback_ro_attr(field)                         \
 static ssize_t field##_show(struct device *dev,                \
                            struct device_attribute *attr,              \
                            char *buf)                                  \
@@ -305,7 +305,7 @@ gb_dev_loopback_rw_attr(us_wait, d);
 /* Maximum iterations for a given operation: 1-(2^32-1), 0 implies infinite */
 gb_dev_loopback_rw_attr(iteration_max, u);
 /* The current index of the for (i = 0; i < iteration_max; i++) loop */
-gb_dev_loopback_ro_attr(iteration_count, false);
+gb_dev_loopback_ro_attr(iteration_count);
 /* A flag to indicate synchronous or asynchronous operations */
 gb_dev_loopback_rw_attr(async, u);
 /* Timeout of an individual asynchronous request */