Received: by 10.223.164.202 with SMTP id h10csp1305892wrb; Fri, 17 Nov 2017 18:36:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ+u/oTuSX93L7PGbpMoOwnHYCJc6sVpmnBUTRCXsJ1kaND9VktyN2j/UWG4SbTP1itLTMt X-Received: by 10.98.201.138 with SMTP id l10mr4119729pfk.116.1510972613121; Fri, 17 Nov 2017 18:36:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510972613; cv=none; d=google.com; s=arc-20160816; b=0zEI6eHGGDFj5d4iYzkVcYHYVJCwv1Whtu43TxSXHQP4pO8B9vMHr4k7PAMns+nHIV /88vxfXQPxYr1HSyxQOQkdFvt2yhnELlvoQb4jgIGLY088h4RaYHTyIsSb3bYbT1zPoi O+fJBurhMs/GAtTZQbEk+0hDwZPuy6syOkjEXD0V0tWv7+1SeE4xmzE981z3ksyJCBwh lRL50qJ+bzG6E91kDQpIpK3zT7uebCU3AdR127UMMoHX1nwkuRObHZGnYPHN5LqMQqjX AXSXs/VfgWyaKIw99V8fviPYlo7MpIAqi/m7akdJx2A7JL6X4203jE33b/+BUPdlyLtT UZIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=mCqiuS/7FzNuiS+sdALAmawvY2uvJjV2wsU4qn6Trsk=; b=qW7pnMVhOaO4m/rGZ/CYUck63+PW0uOWVTLN2gHxTs26LOF/ASFl4+yucNaNnDZO/h abYbTc9onhVbKPnYu1l7bplzNHj+ayWsIGmYrvQJgAkZBRoq/jhQKQZNkSdalTLmj71r Fh3a4Glhsj/BrBNTXn9yqnZL2vk2WUfhQH0ycarkei8Qx4bBkFOmkehpJqsI9I2hjHx2 BEAuKkf9H1GGr9IXT5LsXYjnfi6YBTxFuOJhalAVehITrlQ3u45vmefaDBMPIM2qhyF+ CFJ/oc6OMfRh8eYAMc6c+ErLx8inWdBiSU+XZq5hug+Gg9FZCw8gnZUg+I+FNFmwUnVd EI7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WY3Ap7eW; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a89si1551885pla.153.2017.11.17.18.36.40; Fri, 17 Nov 2017 18:36:53 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=WY3Ap7eW; 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=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935209AbdKQTeY (ORCPT + 93 others); Fri, 17 Nov 2017 14:34:24 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35436 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934236AbdKQTdt (ORCPT ); Fri, 17 Nov 2017 14:33:49 -0500 Received: by mail-pf0-f193.google.com with SMTP id d28so2632996pfe.2 for ; Fri, 17 Nov 2017 11:33:49 -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=mCqiuS/7FzNuiS+sdALAmawvY2uvJjV2wsU4qn6Trsk=; b=WY3Ap7eWMm66U2QwptMavgik2e2E/VxWZ1OpqELAql7q7ohhtVYvp67xqEKOrsybwY eU0OiPtVuWxGg3pkHSmOTnRKzqODFx+70GU21dc8F7xB02itFASeO7XULZECkCVzddwj vT7rgBSAYySjcDs/UYhZ7Gn7i2W3wOwsLLEy0pvDtmJeW0lJ68UTkRB+F0OVelx8Zr5P pXpyXAuckJFos+PKRJRSZVYU4Tu5MNl6LN+bTnkFb6mDaxYcVy+6w6lIrKZsroTySr9D nSvjPNO13y4xWjHn21wQ2jQzqMjy2qN9yIVmpuh9Vs1xxDKQOxDo7BtIPlM0Hop85cbB rp8g== 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=mCqiuS/7FzNuiS+sdALAmawvY2uvJjV2wsU4qn6Trsk=; b=OR+v+FUnm9PCQfRg06FwZQH6GtHZSOcxEMjtcwdn/fimYNn9DAAL6iy7TF38hWG7C9 /f5aYQJxQvycUAU6epmAtsqdfNDoibQkqtS85Y0skEW2qTPaxwucOWbRvEUtjp3V4ca2 cbgeqSpxDND/lCLP/Z7RkuHRVWJ5MS0vSL8r/FCn8usScimwSq3UoKx1ZSkgD90hDGNE zSqcgQB4vjiUVzTnSaCmbIV4AAjctLOUMgqLIN3sOGZmvB0Kferkt7UrDOaqabG1/eCh LBsWuf8w9IKbtBQouJw6E5tLE4C0UWvCEh4KKr1/V4npbng6VTKmSwzZaA9+3jb6hDFS nqyA== X-Gm-Message-State: AJaThX5TVeagUzW4mf3yVA7JSJ9R6Va2ImNaaTqc8g6mYWnjnx8/GZEQ SeGOqhNuqUpmOqsNfjPA6LdYEg== X-Received: by 10.159.246.134 with SMTP id c6mr6191733pls.371.1510947228966; Fri, 17 Nov 2017 11:33:48 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id u77sm9066799pfd.168.2017.11.17.11.33.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Nov 2017 11:33:48 -0800 (PST) From: Arvind Yadav To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, matthias.bgg@gmail.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 3/5] ASoC: nuc900: Fix platform_get_irq's error checking Date: Sat, 18 Nov 2017 01:03:26 +0530 Message-Id: <1510947208-17134-4-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510947208-17134-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1510947208-17134-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- sound/soc/nuc900/nuc900-ac97.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/nuc900/nuc900-ac97.c b/sound/soc/nuc900/nuc900-ac97.c index b6615af..383627d 100644 --- a/sound/soc/nuc900/nuc900-ac97.c +++ b/sound/soc/nuc900/nuc900-ac97.c @@ -346,8 +346,8 @@ static int nuc900_ac97_drvprobe(struct platform_device *pdev) } nuc900_audio->irq_num = platform_get_irq(pdev, 0); - if (!nuc900_audio->irq_num) { - ret = -EBUSY; + if (nuc900_audio->irq_num < 0) { + ret = nuc900_audio->irq_num; goto out; } -- 2.7.4 From 1584406791521309701@xxx Sat Nov 18 12:27:43 +0000 2017 X-GM-THRID: 1584406791521309701 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread