From patchwork Wed Feb 14 15:39:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10219295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 77B9160601 for ; Wed, 14 Feb 2018 15:47:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 645A029024 for ; Wed, 14 Feb 2018 15:47:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6308A29032; Wed, 14 Feb 2018 15:47:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 639A229027 for ; Wed, 14 Feb 2018 15:47:57 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C2B5A267B23; Wed, 14 Feb 2018 16:39:17 +0100 (CET) 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 55FEE26781D; Wed, 14 Feb 2018 16:39:16 +0100 (CET) Received: from mail-qt0-f193.google.com (mail-qt0-f193.google.com [209.85.216.193]) by alsa0.perex.cz (Postfix) with ESMTP id B216B267194 for ; Wed, 14 Feb 2018 16:39:14 +0100 (CET) Received: by mail-qt0-f193.google.com with SMTP id c19so8170043qtm.7 for ; Wed, 14 Feb 2018 07:39:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZXV/VQz45nrTpQgCthBvzVtFQfwXFNLULWyxWgITf6U=; b=Rl5n4UdLcHK6pt3S6hdnILusLtQrZPAfSZb/WlURx4e/jogeKxv0umdowRjwuHfbmW i2aSP8CRs0PT0Rgai4dt1+Ch/bD/5UTHOQHMgjGZUQzyytq9gfSbYhYeffQMPMuA4xK6 lg35VbOI0jGkiH44yFYxXqCkM40aUFM2duSVFChsQhbGy2JOCkOv0lHPmZEjFzzgT5NK Rzh+az/Y2ATIqf0qtE5MmbgVk2E8B2noA+yy8Jb2bhJs4yGc3+bwoSRJ309SeBXp2/Ne PkgI0z+PcKlI+u7j213+NvE7MAalWU3Zki6HTXstluS1TG7Pt4YpYKVAIOQn7DqmwCHu A8Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZXV/VQz45nrTpQgCthBvzVtFQfwXFNLULWyxWgITf6U=; b=OqOJUYJ38j/uj+UDaiAv8FosayZ3wLPHUMHRpZr7ReXEvCLkEP2tp6d+nsloOXDa5w ZGDSz/CTvIm7YnZ323+atyqmuNARu5Q/BoyY6PrEdQnQFSuLcg0siHuR0HglX1GZd87q j0E5npVgAxVe15hOtF7bgCoLLUhxVZYC6dGyrSwCqvms1kDacg/C2C3XXmI+wLjJmhG6 05SlSmclOyoyfEtwwlGOWTKqylLVBTNls7bg3+GDoxrV+sWoFWayiANGNRz9LKU6UHUH f70iT+x4Vzc2gfIDnTY/tjXvoS+1oLIreRbCeU8FvzX47VQsxdSGTeRFa2roJC3NP5qd A2Fg== X-Gm-Message-State: APf1xPBMUzuPnL/gataBfaKyGjh9qjp1kHYpwjXti164FH2ghNH5OOha wDBoEXOzEj8ll0Fu6Y6iSfWy9Q== X-Google-Smtp-Source: AH8x225nZTqVxJAGVF8rUoiU6kU+e4jx32eeoM2y8Cl+OwKAd/6tQW2/yVwLGjoXK6tu+F0iMGCkOQ== X-Received: by 10.237.53.150 with SMTP id c22mr8579770qte.203.1518622753458; Wed, 14 Feb 2018 07:39:13 -0800 (PST) Received: from localhost.localdomain ([2804:14c:482:b3e:b9e4:e2b1:ec95:462c]) by smtp.gmail.com with ESMTPSA id z22sm8777219qti.75.2018.02.14.07.39.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Feb 2018 07:39:12 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Date: Wed, 14 Feb 2018 13:39:04 -0200 Message-Id: <1518622745-12162-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518622745-12162-1-git-send-email-festevam@gmail.com> References: <1518622745-12162-1-git-send-email-festevam@gmail.com> Cc: Fabio Estevam , alsa-devel@alsa-project.org, Charles Keepax Subject: [alsa-devel] [PATCH 2/3] ASoC: wm9713: Use empty struct initializer 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 From: Fabio Estevam { 0 } only clears the first member of the structure. The first member of the snd_soc_dapm_update struct is a pointer, and writing 0 to a pointer results in a sparse warning. Use the empty struct initializer that clears all the struct members and fixes the sparse warning. Cc: Charles Keepax Signed-off-by: Fabio Estevam Acked-by: Charles Keepax --- sound/soc/codecs/wm9713.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c index 3d6cf00..643863b 100644 --- a/sound/soc/codecs/wm9713.c +++ b/sound/soc/codecs/wm9713.c @@ -235,7 +235,7 @@ static int wm9713_hp_mixer_put(struct snd_kcontrol *kcontrol, struct soc_mixer_control *mc = (struct soc_mixer_control *)kcontrol->private_value; unsigned int mixer, mask, shift, old; - struct snd_soc_dapm_update update = { 0 }; + struct snd_soc_dapm_update update = {}; bool change; mixer = mc->shift >> 8;