From patchwork Tue Oct 21 14:53:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 5125781 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A7139C11AD for ; Tue, 21 Oct 2014 14:55:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C5A07200E9 for ; Tue, 21 Oct 2014 14:55:53 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C40C320122 for ; Tue, 21 Oct 2014 14:55:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xgap4-0006lv-K6; Tue, 21 Oct 2014 14:54:06 +0000 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xgap2-0006gI-3C for linux-arm-kernel@lists.infradead.org; Tue, 21 Oct 2014 14:54:04 +0000 Received: by mail-lb0-f178.google.com with SMTP id w7so1163878lbi.23 for ; Tue, 21 Oct 2014 07:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id; bh=xSYD7KepiQDAWOsCWmj4qdZR5QLnyU07c+HqmzEs+EI=; b=S5aIgK+Z+yKlETBeHTcJveMzR7xVrkbaM9iJjW/E4yLaQiZLAdkomGP649hQzHjQZ5 sCOZxKE7WU1WoJT8YzgDe91XD8CgGatxf/ngyXg0Mee7cPyUlOXL7NWofr6lv/JwKsys /7bvdrkRFPCz2gaCRCNhVzFIcAPTFg+fWF+O0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xSYD7KepiQDAWOsCWmj4qdZR5QLnyU07c+HqmzEs+EI=; b=me0gmZ6tYsEPxMVRPdLVhYKL35Y9Mnn1aGudMPrG4l0SdBePTcOScSxfux4CKF/ONa A7AAhN7vN7hHjhvJLugNuyZnWt1zugqErXkGShZw/I0by265dnQTQxVU5cHx4nhtoN3z MJr1yKoge/sO1DeIRHFezrK5K4Qdbu6ER1+u1UeK4wESgwRHYxAAPUqEtcoB1amIL11p 8v8jpYHxrv7waDkpK7gH1OKyZCEkxZqhKSr+tHX4vxxmMe69UOeddzPGCjiD9Yj7yRV2 8m6BSMPM7IavDctoOwodUujmEwPVT1V6GCDHPN9HUea0sAN/RFz8HJ7NT4DFEmG7QkyR laOA== X-Gm-Message-State: ALoCoQmHuHm8X5R0N0Tgp9r3d4uAb4WSMRD1tb8Njx/e3zY6SZS8D3dUI6HNOfXg9v/UP7Grxuyt X-Received: by 10.112.144.228 with SMTP id sp4mr34634514lbb.58.1413903219993; Tue, 21 Oct 2014 07:53:39 -0700 (PDT) Received: from spencer.imf.au.dk ([130.225.20.51]) by mx.google.com with ESMTPSA id dq5sm4636125lbc.11.2014.10.21.07.53.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Oct 2014 07:53:39 -0700 (PDT) From: Rasmus Villemoes To: Sekhar Nori , Russell King Subject: [PATCH] ARM: davinci: Remove redundant casts Date: Tue, 21 Oct 2014 16:53:31 +0200 Message-Id: <1413903211-3143-1-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.0.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141021_075404_317802_39189FB6 X-CRM114-Status: GOOD ( 12.27 ) X-Spam-Score: -0.1 (/) Cc: davinci-linux-open-source@linux.davincidsp.com, Rasmus Villemoes , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP These casts to char* are unnecessary and slightly confusing, since both operands actually have type const char*. Signed-off-by: Rasmus Villemoes --- arch/arm/mach-davinci/board-da850-evm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index fa11415..6b5a97d 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c @@ -452,8 +452,7 @@ static void da850_evm_ui_keys_init(unsigned gpio) for (i = 0; i < DA850_N_UI_PB; i++) { button = &da850_evm_ui_keys[i]; button->code = KEY_F8 - i; - button->desc = (char *) - da850_evm_ui_exp[DA850_EVM_UI_EXP_PB8 + i]; + button->desc = da850_evm_ui_exp[DA850_EVM_UI_EXP_PB8 + i]; button->gpio = gpio + DA850_EVM_UI_EXP_PB8 + i; } } @@ -628,15 +627,13 @@ static void da850_evm_bb_keys_init(unsigned gpio) struct gpio_keys_button *button; button = &da850_evm_bb_keys[0]; - button->desc = (char *) - da850_evm_bb_exp[DA850_EVM_BB_EXP_USER_PB1]; + button->desc = da850_evm_bb_exp[DA850_EVM_BB_EXP_USER_PB1]; button->gpio = gpio + DA850_EVM_BB_EXP_USER_PB1; for (i = 0; i < DA850_N_BB_USER_SW; i++) { button = &da850_evm_bb_keys[i + 1]; button->code = SW_LID + i; - button->desc = (char *) - da850_evm_bb_exp[DA850_EVM_BB_EXP_USER_SW1 + i]; + button->desc = da850_evm_bb_exp[DA850_EVM_BB_EXP_USER_SW1 + i]; button->gpio = gpio + DA850_EVM_BB_EXP_USER_SW1 + i; } }