From patchwork Fri Apr 6 06:34:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 132933 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1200060ljb; Fri, 6 Apr 2018 12:59:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/quxPuDrWkP90sht/7CZyvY3B2/CEKdYxBXPu/Sq8t758lsN5gWWbXzY6V4odlYFhZVCuw X-Received: by 10.80.149.212 with SMTP id x20mr8507450eda.258.1523044762430; Fri, 06 Apr 2018 12:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523044762; cv=none; d=google.com; s=arc-20160816; b=SM6RB3zPZv5Pd90+4loO36KCPPaZeM6z9sJVHs/TiABcwpSNbzF2D1Wgo21faR5xpr rfILP6w9O+AFUocPj+qQkeZpZR7ynmtjulQnoCPstjC5n46mI82ujIcGNAGrEHP3ddh1 mlz8H/9ApuQ8Kr5VY40MMQYEJg7mWRiXSz5GBdWn/Iv+6mwNQflslubwHC91ugUx6jSc I1ZM3UoJGpxSaNxFk2w0EDfRrGGDQ9AVamVxl7KySsvK6WNM3Ff9TkNW0C9xUR2hvHzR c+lk0RgORqWPA2qt5e2TpO/Lf/VFwY8FRvqvLJovYrsOlJbjF9GnGA+mBpO44xNTfRCW nY7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=85inoJ/GS/YfenVdkRpBAPR8ORSVi9G31FYn1UJyL+0=; b=gXIOccFmiiBxSc0JGkXIiXDvabjp1UjKDXiFSQLEK5plOp2IWt9vXDFN2BvZrvv18o fmCN184x1yLfq3ZkA1QgH3kRz9UeMxJKElAM1kqhUOfV0u1BFqa2wcRPcWe/2P9Ir8+I t07XrU4j0T9cvhkeWnJCnOz6FNwCcDEJwY+K0UtvMtGoIV22Dhi65YEij4dt2Dq58mJP vVzW0xCHAj5mEFiq274N07g1ahpDtoxGuUPep5xfjY1H1agh9t3LdjluJL9P0ZFYETD5 RxPxyrSthWNxDgFQ+4+k8RjQkcdVWVf/2idIo5Wy8nx9BGjOerVSgvEGTo8hBrmxq9ij Fk0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=VtqeVIqv; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 33si2279912edf.27.2018.04.06.12.59.22; Fri, 06 Apr 2018 12:59:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=VtqeVIqv; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id 0037AC21DCA; Fri, 6 Apr 2018 19:57:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A5426C21DB6; Fri, 6 Apr 2018 19:57:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5C3B5C21C51; Fri, 6 Apr 2018 06:35:05 +0000 (UTC) Received: from mail-pl0-f68.google.com (mail-pl0-f68.google.com [209.85.160.68]) by lists.denx.de (Postfix) with ESMTPS id B6C3EC21C29 for ; Fri, 6 Apr 2018 06:35:04 +0000 (UTC) Received: by mail-pl0-f68.google.com with SMTP id b6-v6so64724pla.11 for ; Thu, 05 Apr 2018 23:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n0RuumO5To2JJ8WgHS+pjdVn0FaMSuPgByM6zx7Wypo=; b=VtqeVIqv4RISQVYh7OjlbkF6GAfcQxwvg9+MBcDeRe5Q3FSmCKa9uvpGzuwRIF1bAN yA3NqbE9FqBoUfpMbghB46UHX2A2epoRc3mQ7n+sW7ZvAAyyM54/iob2DBkLsBHUPM8d SLpkwHXMpFexK3+uAhgLZry0bkg8gPMm0JVqZpnvo+oIUuO/FkaOGB2JAuJw3ekJtzuW Tj4CD6OtHpOmUa9PNCgFDnENgMdWhOFI+EZ+fdr5bA07bL6mOktyl2dhpNd+h/hLzXPx hy7feL8mo279jB986Vw+bRWFpmmgYg2k9FbbDfoEHlnb++s0gq7tgtroe8ynjwJGGtfE YZKQ== 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:in-reply-to :references; bh=n0RuumO5To2JJ8WgHS+pjdVn0FaMSuPgByM6zx7Wypo=; b=kxIDHXY60sGyIr93S1sywvM5VH9pZDx2kcQFIHMQTMX65aD4aN2K6hw8viOiV6wOTB 0OZH7icksfI+5HINz6I3VNL5qhtl5JUPuq8xOmPnh6YscQ8zx1pdh71dgOopfvc3jgLV mAm60jyOwjGsxpfAWW7mJDPdV6X2iPDEcOWJFjZMQvP7AbnodPbm/p76qmL0oRUXPMd0 3//ObEK/vy3UypSuYX6o42iu4CasQ20q9IUidGGuRTFdNaWOIJPWKX2b4CE9XzOq7s7W v0qHapEcbW2eQrN2b3ThQn2ZwkkJiVJscAvOqYxJAn7R7X1HLkKkyD4RbecG8Z+7ostA MN1w== X-Gm-Message-State: ALQs6tCtm2OYNyPUNWfkY+jTFVuku78gs/6rQuSVsXJp38CFZauTPYtV DP6AenpgZ+9y4cQ5hhOAo+9Aw5Hm X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr13006649pld.379.1522996503120; Thu, 05 Apr 2018 23:35:03 -0700 (PDT) Received: from localhost.localdomain ([112.196.109.116]) by smtp.gmail.com with ESMTPSA id e130sm17106035pfh.85.2018.04.05.23.34.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Apr 2018 23:35:02 -0700 (PDT) From: jassisinghbrar@gmail.com To: u-boot@lists.denx.de, trini@konsulko.com Date: Fri, 6 Apr 2018 12:04:52 +0530 Message-Id: <1522996492-23274-1-git-send-email-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522996457-23191-1-git-send-email-jassisinghbrar@gmail.com> References: <1522996457-23191-1-git-send-email-jassisinghbrar@gmail.com> X-Mailman-Approved-At: Fri, 06 Apr 2018 19:57:12 +0000 Cc: srae@broadcom.com, masami.hiramatsu@linaro.org, Jassi Brar Subject: [U-Boot] [PATCH 1/3] fastboot: sparse: remove redundant argument to write_sparse_image X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Jassi Brar 'sz' has no use for write_sparse_image, remove it simplifying the api. Signed-off-by: Jassi Brar --- common/fb_mmc.c | 3 +-- common/fb_nand.c | 3 +-- common/image-sparse.c | 2 +- include/image-sparse.h | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/common/fb_mmc.c b/common/fb_mmc.c index cf5b77c..6993309 100644 --- a/common/fb_mmc.c +++ b/common/fb_mmc.c @@ -343,8 +343,7 @@ void fb_mmc_flash_write(const char *cmd, void *download_buffer, sparse.start); sparse.priv = &sparse_priv; - write_sparse_image(&sparse, cmd, download_buffer, - download_bytes); + write_sparse_image(&sparse, cmd, download_buffer); } else { write_raw_image(dev_desc, &info, cmd, download_buffer, download_bytes); diff --git a/common/fb_nand.c b/common/fb_nand.c index aa28046..6130612 100644 --- a/common/fb_nand.c +++ b/common/fb_nand.c @@ -180,8 +180,7 @@ void fb_nand_flash_write(const char *cmd, void *download_buffer, sparse.start); sparse.priv = &sparse_priv; - write_sparse_image(&sparse, cmd, download_buffer, - download_bytes); + write_sparse_image(&sparse, cmd, download_buffer); } else { printf("Flashing raw image at offset 0x%llx\n", part->offset); diff --git a/common/image-sparse.c b/common/image-sparse.c index ddf5772..8ebd647 100644 --- a/common/image-sparse.c +++ b/common/image-sparse.c @@ -51,7 +51,7 @@ void write_sparse_image( struct sparse_storage *info, const char *part_name, - void *data, unsigned sz) + void *data) { lbaint_t blk; lbaint_t blkcnt; diff --git a/include/image-sparse.h b/include/image-sparse.h index b0cc500..d92d0f3 100644 --- a/include/image-sparse.h +++ b/include/image-sparse.h @@ -37,4 +37,4 @@ static inline int is_sparse_image(void *buf) } void write_sparse_image(struct sparse_storage *info, const char *part_name, - void *data, unsigned sz); + void *data);