From patchwork Tue Oct 21 15:01:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 5125831 Return-Path: X-Original-To: patchwork-alsa-devel@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 229E1C11AC for ; Tue, 21 Oct 2014 15:01:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 64320201CE for ; Tue, 21 Oct 2014 15:01:44 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id A21CD20122 for ; Tue, 21 Oct 2014 15:01:42 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1FEBC2606B9; Tue, 21 Oct 2014 17:01:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id DBCF22605DA; Tue, 21 Oct 2014 17:01:30 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7B4312605E7; Tue, 21 Oct 2014 17:01:29 +0200 (CEST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by alsa0.perex.cz (Postfix) with ESMTP id B82FE2605DA for ; Tue, 21 Oct 2014 17:01:22 +0200 (CEST) Received: by mail-la0-f47.google.com with SMTP id pv20so1210607lab.6 for ; Tue, 21 Oct 2014 08:01:21 -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=Oj2C924sofjdtESviHZ9zrKnVi/MbXvPSLCLt1/FyYI=; b=hF4XVsidxHKbWLxnPBwCIjdMUB18CBVH1Q4s8Hyb5wBWpSlb7jNmdhhknd/ZEa/UAa dC3BrSb8/myuPmAe1hA3AuCpgufdA9FpxeeDVW7jdHRqSURuTCkq9Ss9dSP8twhmKjfZ VmoZyyzAjg/yfC0vKaCQUP/B6yFF6IUWWhIrc= 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=Oj2C924sofjdtESviHZ9zrKnVi/MbXvPSLCLt1/FyYI=; b=mZOY6rlqi51G3wuQirN45PmymdAxlCZTr+rB3HW+04jNoq3KTDvI7FJHmDlfS28nr0 XL230mGRyLDZSMvpzIeSTnxAHyXOcZmORPPcdCZVMzBAdHpVy3HMotqh9eK6jwW15yXg 3F1oq7nZJtojIEyv7JDxCuDdpfkMYXIO6qwpgwIybmuwqcQXd/yfxi+qQdv3zJXHCsRn Gi37z1RXZlkme96bQssjHgqHmNZ4/7lIRqPj5zn12fS/w0WhWUPi14zOyVmM0EOkKA/6 l7wCgzQwmzLAj1y/PR3y7VulhBo9X3bGI5hoRisHBQRVUv0uMrP3Msk3QFKDlKmDSIG9 +G3A== X-Gm-Message-State: ALoCoQmjYhb5n3aGBpppKmtAuHCslfrp8iye5g/OnoMz/WMYa4L64ZzX6d1S+ul8e/hDPBSvuZdD X-Received: by 10.152.21.170 with SMTP id w10mr35783232lae.9.1413903681544; Tue, 21 Oct 2014 08:01:21 -0700 (PDT) Received: from spencer.imf.au.dk ([130.225.20.51]) by mx.google.com with ESMTPSA id j2sm4642981lbp.16.2014.10.21.08.01.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Oct 2014 08:01:21 -0700 (PDT) From: Rasmus Villemoes To: Mark Brown , Takashi Iwai Date: Tue, 21 Oct 2014 17:01:15 +0200 Message-Id: <1413903675-3363-1-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.0.4 Cc: alsa-devel@alsa-project.org, Rasmus Villemoes , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ASoC: dapm: Remove redundant cast X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Both path->name and e->texts[i] have type const char*, so the cast is slightly confusing and certainly unnecessary. Signed-off-by: Rasmus Villemoes --- sound/soc/soc-dapm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index c61cb9c..39f992b 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -496,7 +496,7 @@ static int dapm_connect_mux(struct snd_soc_dapm_context *dapm, list_add(&path->list, &dapm->card->paths); list_add(&path->list_sink, &dest->sources); list_add(&path->list_source, &src->sinks); - path->name = (char*)e->texts[i]; + path->name = e->texts[i]; if (i == item) path->connect = 1; else