Skip to contentSkip to conversation

drivers: w1: w1: fixed whitespace errors around parenthesis

PATCH In review Ben Werbowyj 2 participants 2 messages Jul 22, 2016 – Jul 23, 2016

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

PATCH 1/1 drivers: w1: w1: fixed whitespace errors around parenthesis

Removed whitespace between open/close parenthesis and internal contents.

---
 drivers/w1/w1.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/w1/w1.c +3 -3
index bb34362..789392f 100644
@@ -963,7 +963,7 @@ void w1_search(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb
 
 	desc_bit = 64;
 
-	while ( !last_device && (slave_count++ < dev->max_slave_count) ) {
+	while (!last_device && (slave_count++ < dev->max_slave_count)) {
 		last_rn = rn;
 		rn = 0;
 
@@ -1008,7 +1008,7 @@ void w1_search(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb
 			triplet_ret = w1_triplet(dev, search_bit);
 
 			/* quit if no device responded */
-			if ( (triplet_ret & 0x03) = 0x03 )
+			if ((triplet_ret & 0x03) = 0x03)
 				break;
 
 			/* If both directions were valid, and we took the 0 path... */
@@ -1027,7 +1027,7 @@ void w1_search(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb
 		}
 		mutex_unlock(&dev->bus_mutex);
 
-		if ( (triplet_ret & 0x03) != 0x03 ) {
+		if ((triplet_ret & 0x03) != 0x03) {
 			if ((desc_bit = last_zero) || (last_zero < 0)) {
 				last_device = 1;
 				dev->search_id = 0;
Signature · 1 line
2.1.4