From patchwork Sat Mar 18 00:54:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9631859 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 79E4060249 for ; Sat, 18 Mar 2017 01:02:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CD571FE95 for ; Sat, 18 Mar 2017 01:02:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61B5A284A5; Sat, 18 Mar 2017 01:02:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 01D9E1FE95 for ; Sat, 18 Mar 2017 01:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=QCtn9C1qu+aFXeqvHeYelVHIrwGHMNcktuLPgk/dx2Q=; b=Nhi/tFEwzsX5j/Ua8z0ip1M45x vFE+L5Mj411skdhxhF5ouTBUeuvqlafQW/fmTWqEHrbWix3MCesGwhmuSwjzEH8hRIVxiWBQIspNC 3v5QeCJ+CexUH3WF8BSVsyyYKh4z4k4aVSq6A0vXDVdGhth7U4UnuvM5RqF9IAVK80jdZF3izftpM EvqDxDwuuwh4S1BLDp8NFIwrTjby1LaCIUOhEVr/bfOYyGrffyB06xbV8RjueqExhx4qwEnsNNxjA e8wY9TSXHqmhS8OVMZhmZagYLE0jCdRfsODlyy8vrh7C/2FhRFGQbPYWoKR3DQLKB6lZrb99IC2iy YfSUcN6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cp2lF-0001B5-Qp; Sat, 18 Mar 2017 01:02:25 +0000 Received: from mail-qk0-f172.google.com ([209.85.220.172]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cp2fX-0004LG-9M for linux-arm-kernel@lists.infradead.org; Sat, 18 Mar 2017 00:56:36 +0000 Received: by mail-qk0-f172.google.com with SMTP id v127so77349599qkb.2 for ; Fri, 17 Mar 2017 17:56:10 -0700 (PDT) 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=O8bBD1uQapHV1xz+g6Ra/2JGsrEfCphTIFz1Svp+1g8=; b=VpIAZcsk6EJRXVdG6Liala3Jw063HaSb/4eQaMOTV1lqGg+bza/JScjmltniJhhwh9 ueGJHBEbs/Foye58JlHXL/6OX1Zv/Fyh2Gy0g/Krak4a1rKk//ZwwJIPaZ3zPgyxDDTr 4FjrT/g/3BoXoVuDvjo+FL5lxpMlgXAb4iwU3F5OXX+R7ffcLMNlcAij3CHj1pwpm7AG ptIqDpUMqDteUEOXB98BJd/4sZ7h8QLEC4XUMysRffmVdJ5nUpYkkwfdbN6Lx0AiQDVl xl5wYbpkcgO267zAxzOE/D6UxEVDMKvtiOiL+ndnjbzKIqjFfI5Kn60cGIH3s70u7bKQ iGvw== X-Gm-Message-State: AFeK/H2HytsOEgXuMbcfzo5yPVgpCEh+a0qKEdv4VebfnoAHWiifLnfklHzo0KjbyO5SxWBw X-Received: by 10.55.145.7 with SMTP id t7mr14889112qkd.2.1489798570019; Fri, 17 Mar 2017 17:56:10 -0700 (PDT) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc:1722:8a6b:a66c:79eb]) by smtp.gmail.com with ESMTPSA id e55sm7118568qte.52.2017.03.17.17.56.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Mar 2017 17:56:08 -0700 (PDT) From: Laura Abbott To: Sumit Semwal , Riley Andrews , arve@android.com Subject: [RFC PATCHv2 21/21] staging: android: ion: Set query return value Date: Fri, 17 Mar 2017 17:54:53 -0700 Message-Id: <1489798493-16600-22-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489798493-16600-1-git-send-email-labbott@redhat.com> References: <1489798493-16600-1-git-send-email-labbott@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170317_175631_533690_22B63419 X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, romlem@google.com, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, Mark Brown , Laurent Pinchart , Benjamin Gaignard , Daniel Vetter , Laura Abbott , Brian Starkey , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This never got set in the ioctl. Properly set a return value of 0 on success. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 64c652b..8bd90ce 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -498,6 +498,7 @@ int ion_query_heaps(struct ion_heap_query *query) } query->cnt = cnt; + ret = 0; out: up_read(&dev->lock); return ret;