diff mbox series

common: blk: fix comment about blkcache_read return value

Message ID 20200122235955.9345-1-eric@nelint.com
State Accepted
Commit 50fe8df2c2cb863e0ab7d4c1240f2216ba184922
Delegated to: Tom Rini
Headers show
Series common: blk: fix comment about blkcache_read return value | expand

Commit Message

Eric Nelson Jan. 22, 2020, 11:59 p.m. UTC
The blkcache_read() routine returns 1 (true) to indicate that a block was
found in the cache and returned, or 0 if not.

Signed-off-by: Eric Nelson <eric@nelint.com>
---
 include/blk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Jan. 25, 2020, 5:10 p.m. UTC | #1
On Wed, Jan 22, 2020 at 04:59:55PM -0700, Eric Nelson wrote:

> The blkcache_read() routine returns 1 (true) to indicate that a block was
> found in the cache and returned, or 0 if not.
> 
> Signed-off-by: Eric Nelson <eric@nelint.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/include/blk.h b/include/blk.h
index 65db69f5d9..6f541bb2ba 100644
--- a/include/blk.h
+++ b/include/blk.h
@@ -129,7 +129,7 @@  int blkcache_init(void);
  * @param blksz - size in bytes of each block
  * @param buf - buffer to contain cached data
  *
- * @return - '1' if block returned from cache, '0' otherwise.
+ * @return - 1 if block returned from cache, 0 otherwise.
  */
 int blkcache_read(int iftype, int dev,
 		  lbaint_t start, lbaint_t blkcnt,