Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8768500ybi; Tue, 9 Jul 2019 22:52:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGWSDR3sU4tRqVZy8CDvr/sdYsZWNcuNwxu/IUoh5t8vsltb3OFn48oWwAVJ+i6Kf0PF7G X-Received: by 2002:a65:43c2:: with SMTP id n2mr35066968pgp.110.1562737936107; Tue, 09 Jul 2019 22:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562737936; cv=none; d=google.com; s=arc-20160816; b=a1Yw7O0EthN1Hq7dVmurZ5aE1kI5l4aeuIMT3LG5DTS7y8Woijhs0ye5v+6bUle/xx 5Mhj7AmM5FIJPm6QuBOR+mYS0vfQEgPIIzrjud+CYe5BZ4AtBfPHb6BLnaz2FNzAxhMG D9CTHHWJLrIW7K2uIgo/ZaSW7GdhzZTlRm6/VxDrubft0frYhKiGWfkbB5BCfZqGI9yT /s6D1ZjiOGoa0ONRd4+9pQHmIFCw7iknspuS37VMT1+9a2gwyXKakGUBAH+v5/AfWDER Hfj2Jg4mzHy5V+Y5/Qj7vhg8MDYeF9cR4Oc1nFu6XIrNxlbfVxW+zYSppIi2yA3K8YEG dbWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ioMDB4xCRfyih9blEfQfFq/5H+9f5r/eOiGuXZsKTpM=; b=r3+ByWqlVWZw8+7b/aT8LZ9bmVnxNVD0C2fEkIM9lD3mdNMDWpAPmddBWigrxoaIfn kEuiZ91MMU4MGq3e/GYECxb9WfUV0lW9CmtvtPm6PSn8sGZ31DVSe25FIlxkNe08W6lI swWJSKJ5LPpFkUTAMlLhVp+6QuHsdjQB6FvCAGRcoXVWQq0fzSybvPPu2H/XO3D7Qrj4 fm7dDxBmRgsBQ46xeFTXINhdLTVy/5PvjCbfHGmOFNnj2xMG6h9OGppHtdMhRTHQkAUP 79TwO5w8o83Fj10ILPF5mn6cU0jWT/ZfClfElatKhOq/rgpXDG7lX2C2ZEZ8QVTsbD39 QsYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mNA1e83g; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si1300655pjl.77.2019.07.09.22.52.00; Tue, 09 Jul 2019 22:52:16 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=mNA1e83g; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727025AbfGJFY6 (ORCPT + 99 others); Wed, 10 Jul 2019 01:24:58 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:40216 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbfGJFY6 (ORCPT ); Wed, 10 Jul 2019 01:24:58 -0400 Received: by mail-ot1-f67.google.com with SMTP id e8so899551otl.7 for ; Tue, 09 Jul 2019 22:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ioMDB4xCRfyih9blEfQfFq/5H+9f5r/eOiGuXZsKTpM=; b=mNA1e83gi656UXPR8nqOQSjw8wH59lM6GanNHXNRGXbg3bq0gEGgsCw16oi+sZU9DJ eQZNOeldrdnuV/5hnGKQpKr1o2kQF/+U+p3TsmIt5rF6zYyIyCNLkjBN4/L5YKqKT399 fjPfPjemWu2HGAWRYhrVRBy+683K0HsvchE32sejFHgVZACcqHIZ+f/pqMUocPt7Vl4L KWMDPgOhI1YaN2NTfaA9ps2KehruPFGrFg/YgM5cP42ecPkX2bSaw3Ozx3KQ593gVsOd gw5i9X/nIAPz3i1KLeKE3PdtZ5ohiIMDa+//oPJUWKzQddrhWXjk6v1O30WeFi5CPm/K /Etg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ioMDB4xCRfyih9blEfQfFq/5H+9f5r/eOiGuXZsKTpM=; b=trz9ZFUoMmpYF2As7Hq3/v0oo12LDMbwpQNSZs8+aQ+oYf0thm/Z4VURIclTIlR7GN t4tJ1j2mQlN7Oe19zFpx/wlWqCMhvsykFtatFFCSZtD1xHzDTy2ba26jmHECZtXxohCK LskumLex6DG0ylLnl8TaUyfsBANSoRwtgrp5Syns9aswiRlJeFPmFe9+4IJaTCmGcWh2 ElH4hcArYbQW9dPq820ps6W5dEF1ePRrWJiuLb52h787ugZ7r3ds9b9kze1HamDEXVjp Uu4d0VnEhRyZMX51Ba5PXCF44SU/K0t+/YiZbzO+rNNrkt5UifEDh9MCVIDoRj6l3HeH Qe6g== X-Gm-Message-State: APjAAAUmRQc/VQTOWFiwfKzJFK4Sn5Uw1IytskYdVO3dFsR5tkM22zAW 77fXkcJzuxKeNwel59om9WAQjqVSzKibZ2pLrl1JTg== X-Received: by 2002:a05:6830:2010:: with SMTP id e16mr9197123otp.344.1562736296734; Tue, 09 Jul 2019 22:24:56 -0700 (PDT) MIME-Version: 1.0 References: <20190709182543.GA6611@hari-Inspiron-1545> In-Reply-To: <20190709182543.GA6611@hari-Inspiron-1545> From: Tzung-Bi Shih Date: Wed, 10 Jul 2019 13:24:45 +0800 Message-ID: Subject: Re: [PATCH] sound: soc: codecs: mt6358: change return type of mt6358_codec_init_reg To: Hariprasad Kelam Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Matthias Brugger , Shunli Wang , ALSA development , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 10, 2019 at 2:25 AM Hariprasad Kelam wrote: > > As mt6358_codec_init_reg function always returns 0 , change return type > from int to void. > > fixes below issue reported by coccicheck > sound/soc/codecs/mt6358.c:2260:5-8: Unneeded variable: "ret". Return "0" > on line 2289 > > Signed-off-by: Hariprasad Kelam Acked-by: Tzung-Bi Shih Thanks for cleaning this up.