From patchwork Wed Jan 22 23:59:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Nelson X-Patchwork-Id: 1227526 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=nelint.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nelint-com.20150623.gappssmtp.com header.i=@nelint-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=uuxYslHf; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4832Tr2zMLz9sR0 for ; Thu, 23 Jan 2020 11:00:32 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 501C18179E; Thu, 23 Jan 2020 01:00:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=nelint.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nelint-com.20150623.gappssmtp.com header.i=@nelint-com.20150623.gappssmtp.com header.b="uuxYslHf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 84245817AC; Thu, 23 Jan 2020 01:00:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 712E18177B for ; Thu, 23 Jan 2020 01:00:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=nelint.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=eric@nelint.com Received: by mail-pj1-x1041.google.com with SMTP id r67so315979pjb.0 for ; Wed, 22 Jan 2020 16:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nelint-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=oUdBvVzhoECTEmNsB70hevykBV8fpD173hfeKLQ9ook=; b=uuxYslHfyKTXMEad8ZfLMoek1JQPH825XOn72D/XKZ0Si7m/GWelh+neIrVANzcXPW qIx8W9F2yD3ocd2jXfxb32X8+q7MyY7+8kpIYfpZRKf3Lkjk6FpixP82b/TBGE7EAzCk 4iWNrcRKz3BdFZ66kMpZ/39w+K186kv8C/KKSExoXmc/5HCH9pceNEc+dZ5cVj/FdZMk ZWris+QmsXp7VLGWoCtLLfCgXGvuhmWVsyvv2pEYP4oho8SqgIEE9WsgJE3CM2rihpre LhrL1rH3neEbo/peNfKKEBXHn0qUVrXwgG8u0JLpOYuD8xfPedFX6xdxEujRAP8KB14a jt2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=oUdBvVzhoECTEmNsB70hevykBV8fpD173hfeKLQ9ook=; b=Qi2qp5S7so9ja2dyBg8BeAhWpwrrjtzfnruDJdN/q9str+uUB3Iy+B2J8qB0kdJC/A 4iMbRy5N5QsgG4cpKgZD0v9Nu46094T5H+c5aPvwJIx5lJcvmRMOKMHXG5JVkz/rDwkm mRcD202i/3lRt8xyP/hH27Lu7ZjwhONkq+42HfY7ErMVIsIu8Wm4k6Xg0Ttuj5HrgT3h ND8rdgC1Xnoh0hK5gSf095SV6owfhSLXrq/jrBUx9OKmz0lq0XDliExZkqWI0fLd786h ZCaegLk/zXJ9ZL5xoRTUL58b8AFVbtlEBXthOJJC9WvLgfkbc5/ertj0/kCZaacNH0Vv b2xw== X-Gm-Message-State: APjAAAU46zl/Ne1KR42agtNXNEJzrrSGpRu/zIgwGnz/CrXjhZxBtA8C PfV0lytTnMcW0d4py+bxsEuhS1Hsa5U= X-Google-Smtp-Source: APXvYqxw9d+JEL15oUmacQ6qsN/btSZCTso1nPiCOCG2WvyaP9US/e5u3DjOdj59h3MKGRfq5VYdsQ== X-Received: by 2002:a17:902:9a96:: with SMTP id w22mr13554598plp.107.1579737619433; Wed, 22 Jan 2020 16:00:19 -0800 (PST) Received: from localhost.localdomain ([2600:8800:1300:1920:5d84:13a8:30d2:8224]) by smtp.gmail.com with ESMTPSA id a26sm78268pfo.27.2020.01.22.16.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 16:00:18 -0800 (PST) From: Eric Nelson To: u-boot@lists.denx.de Subject: [PATCH] common: blk: fix comment about blkcache_read return value Date: Wed, 22 Jan 2020 16:59:55 -0700 Message-Id: <20200122235955.9345-1-eric@nelint.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: trini@konsulko.com, Eric Nelson , angelo.dureghello@timesys.com Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean 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 --- include/blk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,