2021-03-12 11:47:44

by Xu Wang

[permalink] [raw]
Subject: [PATCH] w1: Remove extra brackets

Remove extra brackets.

Signed-off-by: Xu Wang <[email protected]>
---
drivers/w1/w1_int.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/w1/w1_int.c b/drivers/w1/w1_int.c
index b3e1792d9c49..eee4b5b652f1 100644
--- a/drivers/w1/w1_int.c
+++ b/drivers/w1/w1_int.c
@@ -102,7 +102,7 @@ int w1_add_master_device(struct w1_bus_master *master)
!(master->write_bit && master->read_bit) &&
!(master->write_byte && master->read_byte && master->reset_bus)) {
pr_err("w1_add_master_device: invalid function set\n");
- return(-EINVAL);
+ return -EINVAL;
}

/* Lock until the device is added (or not) to w1_masters. */
--
2.17.1