Skip to contentSkip to conversation

common: blk: fix comment about blkcache_read return value

PATCH New Eric Nelson 2 participants 2 messages Jan 22, 2020 – Jan 25, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common: blk: fix comment about blkcache_read return value

The blkcache_read() routine returns 1 (true) to indicate that a block was found in the cache and returned, or 0 if not.

---
 include/blk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/blk.h +1 -1
index 65db69f5d9..6f541bb2ba 100644
@@ -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,
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 common: blk: fix comment about blkcache_read return value

Quoted 4 lines · Eric Nelson

The blkcache_read() routine returns 1 (true) to indicate that a block was found in the cache and returned, or 0 if not.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200125/8fd89210/attachment.sig>