Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3134972pxk; Mon, 21 Sep 2020 06:13:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT/pcJWAFNcXIQ0IUURutZzlbiKT9ofGsH+/3WsU75eMJA+Ed8jke6kWxjwoBar5JEmIz9 X-Received: by 2002:a17:906:1484:: with SMTP id x4mr48517729ejc.81.1600694001417; Mon, 21 Sep 2020 06:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600694001; cv=none; d=google.com; s=arc-20160816; b=sOrXZ2KhpftwvuztAUSx0O2HcogYYMgS4ih3gzbry9vkUzLEE2pru3TVnOs3QdWpzU v2/dweZOY+9DJ6C/CSHQCkF4EXwUGaKZJMOqVr2jS2pIq603foIrnHUPYZw8SivB7iO2 pWmI4kz71uiX2giNW4ie7kZF/I8uh5IKm3w1GZxLUc9qW4Gjr7Zf6RZens0c03DoBDJ3 BHVa7p6BOW0NHuDU7KcQ4dBMAZHDwqbmNPcryAcYrP0Rdxx/8Lc2VO8mzhMb1Tkd/w0g Ncn5O+jJitpfudMlKQ4jitAIK0XgQmbLGG93EkaLjqj0clsWgzAPkVBPMDhnVpydOC5Y 3o/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=b8NIlcYcxqm8+izkZUCokr4L2NbJ8PmtW14/cZ7QJ/s=; b=rLKRFqA/4U2yxgeLgqPRph3GsMbCfA337vD6kts204yHFKddj7aP0PZhCSF1YhXMzX LLu7d2ry05Iesa/NwIIlQD+yiiQT2M5eo4+ei/vbYzyRTUemlkSeJkJrctLWUFNLHyYI 0phum+JXCN3NRaU7bUYNntDxemEH5PpR4GgDRsZQrLOQkKVYa+kAFV/Ci4a4spphBs4O rQXmoYFItMwqb4XH9eZ8xIsnOfdtA80OWutUGCbXjoax224ZQXzHwYwVMv/mEHRYuO+H D70AbNr+n47ZBRuZbY9LNSEumls+LeS8781wayDTYGdn0FGnzsWsVivCkMq06mpImXxp 9OFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk26si8218463edb.60.2020.09.21.06.12.56; Mon, 21 Sep 2020 06:13:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727485AbgIUNLH (ORCPT + 99 others); Mon, 21 Sep 2020 09:11:07 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:43426 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727428AbgIUNK6 (ORCPT ); Mon, 21 Sep 2020 09:10:58 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D4D769CEF4DE08770362; Mon, 21 Sep 2020 21:10:55 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:10:49 +0800 From: Qinglang Miao To: Hans de Goede , Arnd Bergmann , "Greg Kroah-Hartman" CC: , Qinglang Miao Subject: [PATCH -next] virt: vbox: simplify the return expression of vbg_input_open() Date: Mon, 21 Sep 2020 21:11:13 +0800 Message-ID: <20200921131113.93459-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/virt/vboxguest/vboxguest_linux.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/virt/vboxguest/vboxguest_linux.c b/drivers/virt/vboxguest/vboxguest_linux.c index 6215a688e..73eb34849 100644 --- a/drivers/virt/vboxguest/vboxguest_linux.c +++ b/drivers/virt/vboxguest/vboxguest_linux.c @@ -202,13 +202,8 @@ static int vbg_input_open(struct input_dev *input) { struct vbg_dev *gdev = input_get_drvdata(input); u32 feat = VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE | VMMDEV_MOUSE_NEW_PROTOCOL; - int ret; - ret = vbg_core_set_mouse_status(gdev, feat); - if (ret) - return ret; - - return 0; + return vbg_core_set_mouse_status(gdev, feat); } /** -- 2.23.0