From patchwork Wed Feb 11 05:03:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Rorvick X-Patchwork-Id: 5810281 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4A2009F30C for ; Wed, 11 Feb 2015 05:04:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 814492021F for ; Wed, 11 Feb 2015 05:04:56 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 568C920218 for ; Wed, 11 Feb 2015 05:04:55 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5F82F261A53; Wed, 11 Feb 2015 06:04:54 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, 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 4655F261600; Wed, 11 Feb 2015 06:03:52 +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 ECB02261606; Wed, 11 Feb 2015 06:03:50 +0100 (CET) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) by alsa0.perex.cz (Postfix) with ESMTP id 8A8D72605C0 for ; Wed, 11 Feb 2015 06:03:41 +0100 (CET) Received: by ierx19 with SMTP id x19so1584000ier.3 for ; Tue, 10 Feb 2015 21:03:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=BZr3LTqmfcY0990lUB7ehoHt+qVTlRP6p/ogcyzTFec=; b=yHo5eIqUozPzdcEwLU0QFMDnD0+y+a0kskOkp955JtMrLj3M8qcqsL/0gsZ1+rMPCb g2jQjWeIwSctvLns35KkqQf0FG8ec/dE9m4Vl2s56JBZmexeWj1KO5i5ChRIYpGCOpRQ 8rHgtzdPPpxH8+H984MQGZ0cGzUqHEnFhRIEZ9rQ5v19MPd+qTzxPw9TY3JnyDxFALY+ eajawiprF04jeYTS0eo9+rfrgCuCaYNTD8QEoIo7ce8GbRh8ngW+40ruxCaMItkZeuy1 WaQ4iXVBgP/S3cVrAg5FodXd5NpNVFS8FhSXKcZLKCGXpfu/43ke2YlNt9ktDaMOr983 E7mA== X-Received: by 10.42.172.1 with SMTP id l1mr1263725icz.80.1423631021013; Tue, 10 Feb 2015 21:03:41 -0800 (PST) Received: from localhost.localdomain.com ([99.135.164.179]) by mx.google.com with ESMTPSA id qd2sm9291297igc.22.2015.02.10.21.03.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Feb 2015 21:03:40 -0800 (PST) From: Chris Rorvick To: Takashi Iwai Date: Tue, 10 Feb 2015 23:03:15 -0600 Message-Id: <1423630997-25464-5-git-send-email-chris@rorvick.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1423630997-25464-1-git-send-email-chris@rorvick.com> References: <1423630997-25464-1-git-send-email-chris@rorvick.com> Cc: Stefan Hajnoczi , alsa-devel@alsa-project.org, Chris Rorvick , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 4/6] ALSA: line6: Return EIO if read/write not successful 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 Signed-off-by: Chris Rorvick --- sound/usb/line6/driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c index 2a33f3e..f8e2eb0 100644 --- a/sound/usb/line6/driver.c +++ b/sound/usb/line6/driver.c @@ -349,7 +349,7 @@ int line6_read_data(struct usb_line6 *line6, u16 address, void *data, dev_err(line6->ifcdev, "length mismatch (expected %d, got %d)\n", (int)datalen, (int)len); - return -EINVAL; + return -EIO; } /* receive the result: */ @@ -415,7 +415,7 @@ int line6_write_data(struct usb_line6 *line6, u16 address, void *data, return -EIO; } else if (status != 0) { dev_err(line6->ifcdev, "write failed (error %d)\n", ret); - return -EINVAL; + return -EIO; } return 0;