Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9007620ybi; Wed, 10 Jul 2019 03:09:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzO/hDeVi09MqukRnD1PF46EC+0osK+VjCihqj1agtj3JUq0JAxjbrAQi/pWj2a8mIhwM98 X-Received: by 2002:a17:90a:ba93:: with SMTP id t19mr5855759pjr.139.1562753382868; Wed, 10 Jul 2019 03:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562753382; cv=none; d=google.com; s=arc-20160816; b=MSWomx4mE0bQuL3deGiGCDBWAvgDRAU0uL847UWLCNJVjns8a8c/qtYtZt4927qFHL mxTbK/CYtbGFxPPMmyzR+9lhOksVRpvHOTmUCBbOj7tTUzvKcBbJyBu7U4fGS6Olgp7B w3gFFancmhfcctk6L4pvdmZZmjySpQ+XY9qLEtK/z6orLJ3x/Vufel1Zhr9h26FNDAYS vnUO3CJyZsyV4f1yZF8pjFBPsRmMjK5AkAOE5eG8MdIckb3HqWJzAPC9SQDfRp2UyaZX Js2cvHOIg7ow7M2aTVD3ik+Ef4kRHERc+oDJmdbIgrZp2kowcG6JhkIwbVczFv4l8LRx 8QwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=1kjYNrg/bWkfYDz6D1AVmai0m9PAZWef0fml2gDK60Y=; b=QNcG2VIorCu1leikgiO9+qh2zg7n+zF67nfxRxPmxtZAv4Fg5d5d+URmGwhfLWtY5Z RwCZvp3zrJyMFwhy20PmCxYPsLwLKXIdHL5C5cSg/hYzE1kGg6dnuLglXgmsO7kF2xci uxRIIKnEbBEjOqlgk5pcJSTE8XTIRUvvctkIGV1IUpul4c6s6PYYkd2K24LIdAzcECTv IsYYHLeDq5g9RxY2TPd7Ck+9hKCUEzp4ew/fDLTa6TewxcpjkINvqFUkVBsxJJNcWhCb 7TNJ0InDukQQqk2HXgYc//o3KGqs19Zq9SdoCnKnpWnaqb3BrO57+1I+yDzsuyUDJfvh pFhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s8si2090188pjb.40.2019.07.10.03.09.22; Wed, 10 Jul 2019 03:09:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727367AbfGJJwx (ORCPT + 99 others); Wed, 10 Jul 2019 05:52:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:56358 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725994AbfGJJwx (ORCPT ); Wed, 10 Jul 2019 05:52:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0F6AAB061; Wed, 10 Jul 2019 09:52:52 +0000 (UTC) Date: Wed, 10 Jul 2019 11:52:52 +0200 Message-ID: From: Takashi Iwai To: "Hariprasad Kelam" Cc: , "Thomas Gleixner" , "Kate Stewart" , "Allison Randal" , "Jaroslav Kysela" , "Takashi Iwai" , Subject: Re: [PATCH] sound: pci: lx6464es: Remove unneeded variable err In-Reply-To: References: <20190710023059.GA14204@hari-Inspiron-1545> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Jul 2019 11:49:31 +0200, Takashi Iwai wrote: > > On Wed, 10 Jul 2019 04:30:59 +0200, > Hariprasad Kelam wrote: > > > > This patch fixes below issue reported by coccicheck > > sound/pci/lx6464es/lx6464es.c:256:5-8: Unneeded variable: "err". Return > > "0" on line 258 > > > > We cannot change return value as its registered with snd_pcm_ops->close > > > > Signed-off-by: Hariprasad Kelam > > Applied, thanks. Well, looking at the description above again, I'd drop the text "We cannot change return value as its registered with snd_pcm_ops->close" because this is quite misleading. There is absolutely no need for changing the function return type. thanks, Takashi