Skip to contentSkip to conversation

regmap: Remove incorrect unreachable comment in regcache_set_val()

PATCH Applied Axel Lin 2 participants 2 messages Jan 31, 2012

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regmap: Remove incorrect unreachable comment in regcache_set_val()

regcache_set_val() returns false if cache[idx] != val. Thus it actually is not unreachable.

---
 drivers/base/regmap/regcache.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/base/regmap/regcache.c +0 -1
index d103401..77ce5ff 100644
@@ -389,7 +389,6 @@ bool regcache_set_val(void *base, unsigned int idx,
 	default:
 		BUG();
 	}
-	/* unreachable */
 	return false;
 }
 
Signature · 1 line
1.7.5.4
Applied
#1 lore raw
Quoted 2 lines · Axel Lin

regcache_set_val() returns false if cache[idx] != val. Thus it actually is not unreachable.

Applied, thanks.