From patchwork Sun Apr 12 05:55:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 6202601 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 08ACA9F2EC for ; Sun, 12 Apr 2015 05:55:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 307F820270 for ; Sun, 12 Apr 2015 05:55:45 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 3509E20265 for ; Sun, 12 Apr 2015 05:55:44 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 373BE260523; Sun, 12 Apr 2015 07:55:43 +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.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 096BE2604E9; Sun, 12 Apr 2015 07:55:42 +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 285882604EA; Sun, 12 Apr 2015 07:55:40 +0200 (CEST) Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by alsa0.perex.cz (Postfix) with ESMTP id D0A552604D5 for ; Sun, 12 Apr 2015 07:55:32 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.11,564,1422918000"; d="scan'208";a="109774030" Received: from 198.67.28.109.rev.sfr.net (HELO hadrien) ([109.28.67.198]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Apr 2015 07:55:31 +0200 Date: Sun, 12 Apr 2015 07:55:30 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@localhost6.localdomain6 To: Jie Yang Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Cc: Wenkai Du , alsa-devel@alsa-project.org, Kees Cook , Takashi Iwai , Imre Deak , Liam Girdwood , Mark Brown , Jarkko Nikula Subject: [alsa-devel] [PATCH] ASoC: Intel: remove unneeded variable 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Removes unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci CC: Jie Yang Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- sst-baytrail-ipc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/sound/soc/intel/baytrail/sst-baytrail-ipc.c +++ b/sound/soc/intel/baytrail/sst-baytrail-ipc.c @@ -511,7 +511,6 @@ static int sst_byt_process_notification( struct sst_byt_stream *stream; u64 header; u8 msg_id, stream_id; - int handled = 1; header = sst_dsp_shim_read64_unlocked(sst, SST_IPCD); msg_id = sst_byt_header_msg_id(header); @@ -531,7 +530,7 @@ static int sst_byt_process_notification( break; } - return handled; + return 1; } static irqreturn_t sst_byt_irq_thread(int irq, void *context)