From patchwork Fri Jun 9 02:33:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 773592 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wkRDL5n0Dz9s5L for ; Fri, 9 Jun 2017 12:33:22 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 90972C21C6F; Fri, 9 Jun 2017 02:33:16 +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=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 14E6CC21C2D; Fri, 9 Jun 2017 02:33:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9FBDFC21C2D; Fri, 9 Jun 2017 02:33:12 +0000 (UTC) Received: from mail-yw0-f195.google.com (mail-yw0-f195.google.com [209.85.161.195]) by lists.denx.de (Postfix) with ESMTPS id 087E7C21C2C for ; Fri, 9 Jun 2017 02:33:12 +0000 (UTC) Received: by mail-yw0-f195.google.com with SMTP id y64so2885459ywe.0 for ; Thu, 08 Jun 2017 19:33:11 -0700 (PDT) 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=lTi6pHc6cMbbX+NEQgDqThAtm+nBNIv4Xer5HUw72to=; b=j0xm5PwQ7Na6ZJKDHBnV3a/NUQZSNBzw00hjvl8RIzgpAEOksfKJwnN/X4flFsUoA5 LLJpoTuiG7DakjyuWOg+PsopdbiqSEC2STPf4c0g3vF4uBJKmc/Xal3ew/2Umi+1I3BB XeZ5agvNkV7wi8G9FALNJGVqsF277tpJZgaK9odnpvUgJOnL++Q1xc7FNv0DWPuGHD3c G5W4WGJFQVetHSgvvnFrfC4bjVQuTg+pLFa60gSzZMumA5BH8nH75UICVrO7mUkpV1L8 2U2YMpz4RdlPBqi3KldkUeBzgCenUlFPbSttlKEfwztmlDGVLbk6NHthj8jY8VU+N5aq yMoQ== X-Gm-Message-State: AODbwcA3wQRUXL9gnLdF4n6AbhC3kDHrxXlGVXNfYhX/qrH1IRFRicHd /aA31s0xA54mAyoD X-Received: by 10.129.46.135 with SMTP id u129mr10367027ywu.182.1496975590543; Thu, 08 Jun 2017 19:33:10 -0700 (PDT) Received: from localhost.localdomain (cpe-75-180-228-133.ec.res.rr.com. [75.180.228.133]) by smtp.gmail.com with ESMTPSA id p83sm2713351ywc.76.2017.06.08.19.33.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 19:33:09 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Thu, 8 Jun 2017 22:33:25 -0400 Message-Id: <1496975605-5747-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 1.9.1 Cc: Philipp Tomsich Subject: [U-Boot] [PATCH] rkcommon.c: Remove unused rkcommon_spi_to_offset 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" This function is unused, remove. Reported by clang-3.8. Fixes: a1c29d4b43dc ("rockchip: mkimage: set init_boot_size to avoid ...") Cc: Philipp Tomsich Signed-off-by: Tom Rini Reviewed-by: Philipp Tomsich --- tools/rkcommon.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index fd95abc79aed..a29dc6a5453a 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -226,11 +226,6 @@ static inline unsigned rkcommon_offset_to_spi(unsigned offset) return ((offset & ~0x7ff) << 1) + (offset & 0x7ff); } -static inline unsigned rkcommon_spi_to_offset(unsigned offset) -{ - return ((offset & ~0x7ff) >> 1) + (offset & 0x7ff); -} - static int rkcommon_parse_header(const void *buf, struct header0_info *header0, struct spl_info **spl_info) {