Sfoglia il codice sorgente

regmap: Remove incorrect unreachable comment in regcache_set_val()

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

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Axel Lin 13 anni fa
parent
commit
aa795d1292
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. 0 1
      drivers/base/regmap/regcache.c

+ 0 - 1
drivers/base/regmap/regcache.c

@@ -375,7 +375,6 @@ bool regcache_set_val(void *base, unsigned int idx,
 	default:
 	default:
 		BUG();
 		BUG();
 	}
 	}
-	/* unreachable */
 	return false;
 	return false;
 }
 }