From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Estevam Subject: Re: [PATCH] ASoC: sh: Remove redundant out of memory message Date: Sat, 25 Feb 2017 18:20:38 -0300 Message-ID: References: <20170225101629.12694-1-done.cristian@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ot0-f169.google.com (mail-ot0-f169.google.com [74.125.82.169]) by alsa0.perex.cz (Postfix) with ESMTP id 7551C26751F for ; Sat, 25 Feb 2017 22:20:40 +0100 (CET) Received: by mail-ot0-f169.google.com with SMTP id x10so33166434otb.1 for ; Sat, 25 Feb 2017 13:20:39 -0800 (PST) In-Reply-To: <20170225101629.12694-1-done.cristian@gmail.com> 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 To: Cristian Done Cc: Liam Girdwood , "alsa-devel@alsa-project.org" , Mark Brown , Takashi Iwai List-Id: alsa-devel@alsa-project.org On Sat, Feb 25, 2017 at 7:16 AM, Cristian Done wrote: > master = devm_kzalloc(&pdev->dev, sizeof(*master), GFP_KERNEL); > if (!master) { > - dev_err(&pdev->dev, "Could not allocate master\n"); > return -ENOMEM; > } As you are removing the dev_err line you can also remove the if brackets.