Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3345705ybt; Mon, 22 Jun 2020 23:15:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyD212tfplc85uIaoI5MiBPzbjd/ly3LkR8VZDflvvrHBjR4I308eH0SEy8gouKE99sivzM X-Received: by 2002:a50:bf4c:: with SMTP id g12mr20769570edk.203.1592892941738; Mon, 22 Jun 2020 23:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592892941; cv=none; d=google.com; s=arc-20160816; b=dkvqzWXU+pM/npEHPpVtczKnCZbwWBEjq9rG/2djSepmluj52bge6sviQMvG4VjAOK 3N5k0IUGSkcHnOlYYrbMrWPp9/my6ucOS2vtgYJ1pJu7fTjnfENh8FVX9/Pvw9+1lMoA F/K3CqRJQ34iCXBUFOxHrfLFuNF6K6QrqfjlC2MUj4lVytf2ifD6/YEOq43wl+b0BQZS DBa1OU5az0r6Yf+9EKTIcdbVZmebE9vHMVfTETUDebfEj9yt/FWoZ4NnpGIp2UZfZhPj dl/vkWdCr4xMH8VrDdZ6yWrQmozIlMe/pqbhzt8EGbK/6s2uMzXNJmENMlVmw4B/DYzG cnrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=6WxbD1Hw+eeeabJxNZN8x7Vuiex4IfKh/MBEeeOVlqU=; b=lGwAMywFySzb7NrFotXRlgyUPw0fTJ9+vmVe7DHHYlCF0dhYho7YPMVh6fBRYuQLd7 hFyHJ738rXQKQGFMfJf7679VBTCZAnELICgiIW4yy4+Fre/beBEgNYq6lec82XXLZy+H XYtIjhsbx8/6B3L11x0wtPU1NZYxjFSM6lPGuDzS0OdeleNbwMQWglb4B+ZxPZpqyely pDCU6ZN4KugwLUpy+vbGUkQmMKsmhQLFfO+fMhPZGW+/pbyupW46skq/rKKoP07dQWyV oNfiUxbojAr0zIz5s26eiAOnVD+TH3FuUADOUURPl7evIuNl7JgXWfzZyoVIJyYMYNba pOIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o20si9737478eju.673.2020.06.22.23.15.19; Mon, 22 Jun 2020 23:15:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730654AbgFWGMj (ORCPT + 99 others); Tue, 23 Jun 2020 02:12:39 -0400 Received: from inva020.nxp.com ([92.121.34.13]:39110 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730149AbgFWGMj (ORCPT ); Tue, 23 Jun 2020 02:12:39 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 9A3D41A1917; Tue, 23 Jun 2020 08:12:37 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 716831A0E27; Tue, 23 Jun 2020 08:12:33 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id CB87A4029C; Tue, 23 Jun 2020 14:12:27 +0800 (SGT) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Fix unchecked return value for clk_prepare_enable Date: Tue, 23 Jun 2020 14:01:10 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First patch is to remove the check of clock pointer before calling clk API. Second patch is to fix the issue that the return value of clk_prepare_enable is not checked. changes in v2: - split the patch to separate patches Shengjiu Wang (2): ASoC: fsl_mqs: Don't check clock is NULL before calling clk API ASoC: fsl_mqs: Fix unchecked return value for clk_prepare_enable sound/soc/fsl/fsl_mqs.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) -- 2.21.0