From patchwork Wed Apr 8 11:20:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6178851 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 16313BF4A6 for ; Wed, 8 Apr 2015 11:26:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 01EE62035D for ; Wed, 8 Apr 2015 11:26:45 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id D1FDC20357 for ; Wed, 8 Apr 2015 11:26:43 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0D15126571D; Wed, 8 Apr 2015 13:26:43 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_WEB, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 96F722652CD; Wed, 8 Apr 2015 13:23:00 +0200 (CEST) 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 51B192652E9; Wed, 8 Apr 2015 13:22:59 +0200 (CEST) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by alsa0.perex.cz (Postfix) with ESMTP id 9BDAB265314 for ; Wed, 8 Apr 2015 13:21:50 +0200 (CEST) Received: by pdbnk13 with SMTP id nk13so112432788pdb.0 for ; Wed, 08 Apr 2015 04:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uKLirPQ9Sk95JiMeqdUpjkF4g1alu9OZu6FoIMPfJzY=; b=W8uR3RUmBYuOk8i+stkeScHYNc4hbBcxvPs/XZx371TorG/5ZuHUrYn5PtQrcQGn54 dqpZCxm3u52KTAGe7aVUldIV1xw2j+SnszOnSwWm/FKtu+YYdR0CfXpepBtlotRUdGHE jWQaPyvIuG+iiDLG1TiHDzP+byq+e0qYRZBvqLmsbN4Sj0uEIMltH3J4J/NWrvDnxUJU sy9rUOpfSkBNkgQ0onlcheGzlwjIYqstW8UKMiII9VLxUnh1A2m2sh/S2aF4bZDDnrN9 CYXCQCf4XCaV7GVL0na988gsxdCeY42ByYS1jU+QmQW8+n/i5BIgMHiPB3QgtCegVs1E h1mQ== X-Received: by 10.70.37.139 with SMTP id y11mr46238574pdj.115.1428492109925; Wed, 08 Apr 2015 04:21:49 -0700 (PDT) Received: from localhost.localdomain ([122.169.147.27]) by mx.google.com with ESMTPSA id og11sm10973411pdb.91.2015.04.08.04.21.43 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 Apr 2015 04:21:49 -0700 (PDT) From: Sudip Mukherjee To: Arnd Bergmann , Greg Kroah-Hartman , Jean Delvare , Wolfram Sang , Rodolfo Giometti , "James E.J. Bottomley" , Mark Brown , Willy Tarreau , Jaroslav Kysela , Takashi Iwai Date: Wed, 8 Apr 2015 16:50:34 +0530 Message-Id: <1428492040-5581-9-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1428492040-5581-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1428492040-5581-1-git-send-email-sudipm.mukherjee@gmail.com> Cc: devel@driverdev.osuosl.org, alsa-devel@alsa-project.org, linux-scsi@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-i2c@vger.kernel.org, Sudip Mukherjee Subject: [alsa-devel] [PATCH 08/14] [SCSI] imm: return proper error values from attach 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 now that we are monitoring the return value from attach, make the required changes to return proper value from its attach function. Signed-off-by: Sudip Mukherjee --- drivers/scsi/imm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c index 89a8266..e26330a 100644 --- a/drivers/scsi/imm.c +++ b/drivers/scsi/imm.c @@ -1225,9 +1225,9 @@ out: return err; } -static void imm_attach(struct parport *pb) +static int imm_attach(struct parport *pb) { - __imm_attach(pb); + return __imm_attach(pb); } static void imm_detach(struct parport *pb)