Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7048722ybi; Wed, 5 Jun 2019 10:21:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHn3kU72tBgepI3sobnZOwL3u6TxZejzZIcwe6qtmHzZvZnMgEN7PjVocbScMiBTwW47TS X-Received: by 2002:a63:91c4:: with SMTP id l187mr5635323pge.95.1559755296492; Wed, 05 Jun 2019 10:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559755296; cv=none; d=google.com; s=arc-20160816; b=AX+WiU6g+8cUYW6h2uD3XsAQhtYFXkkGXMHQZtmBcRWk/Cj2YxGNmeC+CDIXAic/Gs XK83EmXvYBZQmC4OX5CFVp0fW186TFrgKRcAPzmjGhJdcjri0TJfjFA/bNP7EH5/KbP/ 3Mg7L1IvRSez6dpX1DpXzITZ7ue3JeoAdNuhvJhm/Vd8NeR4A/SDlIeig8Ynn7s3fQAb pkr/wnKH3S0Vk3DF3ie5J2pokWFmWHHyuB/PupPUUsOdDV3pncKFtEV7jGumg39/2SuL QH43DjA1hMcatqrCPQ9IRbK+TL0jJ9GTF+4/sZlZPpvA/zj6T85BE43S+MgYc1/nXaPW oPHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=B/JvG0ZRDNEBNEcUAraBTtC7NdvBq6Iubs4NTtSOxek=; b=Bsigsg9/hEbxzyJh5+yG65vS9iK9Y4tjuU6yux89K7torShlplKoEGcOhNCOfjXBxD l6nv8xP2audbRm74AjVkxo0+aYDVMbK3Z9n4yCS0OmmF8exJH3tK+Z75VAB+81fHxXtw zgbO4WHDeUk0AJsIh99siwnKv4qwl7gS1pBYl+0l71F+q0zfzyOCnIrGEGP7eEU8qqfw ZhT7zRJtbYaPnfs5rd+cMztXmMSbopks5TZ/rwR0BWozHuFasUXIOxxls4187Ef/IU1I eMZziX2K9RyGkqqpV8079DCUieU/WaprehZvkKHSPRFPX+5lhF4W21opwfSWEQ9tB0Ps aNiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rDfdgNba; 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=QUARANTINE 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 k137si28262240pga.59.2019.06.05.10.21.19; Wed, 05 Jun 2019 10:21:36 -0700 (PDT) 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=rDfdgNba; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726531AbfFERTN (ORCPT + 99 others); Wed, 5 Jun 2019 13:19:13 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:43941 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725950AbfFERTN (ORCPT ); Wed, 5 Jun 2019 13:19:13 -0400 Received: by mail-pl1-f193.google.com with SMTP id cl9so4821455plb.10; Wed, 05 Jun 2019 10:19:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=B/JvG0ZRDNEBNEcUAraBTtC7NdvBq6Iubs4NTtSOxek=; b=rDfdgNbauu7tZFEVYV7kQxLNvFyCSUWQ7UC3QM6R5p6bIgKreqMVDBgwWMaOEBxIDL 96Uh5qcTkghNicBFnqtttNQKz/o2k3mU6z84h0Oz8cblIIdVoG0MosNevlA4Jx/dccUn DLanrfnDs7gqgu9LLefN9tkfsB1JV/0QpmvJ8TjifvOTwig5xwzpcpbNLheZ8phjhZA+ 4DIZfCocPAF0IKLy9yaO475MMkN09W9CnUFoZmI3JTuEyEnZXbOJQq81JxngkEQwOD3C qnz3lPZpMfku2xZ6OyZOUmgjFXFXQRN2laDJffcS0VDypmBhrIMZ1KkVL6Ah4gRSX6sc /QRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=B/JvG0ZRDNEBNEcUAraBTtC7NdvBq6Iubs4NTtSOxek=; b=L/0xB1s45OjNOkc2yBszik/gD0jq7sIId7E49gIVe7GKY+bz4UzrG6kcp3bcBkaCIG klzyyhO7LVD5cRbyTLDEqzJWo2tamzELVPsH2aq5DBMELzywXYjsTBVPA402nYCjAVHz J3JtibS03WUgzHebNhIJ3z6IXZHZCGudkqXJWbaAZR9jxiBDtwXntYzCXKz6+Bc5PfM+ DsURo3cXyJJ9VOZOM8OzKNoEUxvhnbI5bfhycw+iq86gKsG1fjnZW9qosXX0R3fQGW5Q Jz9X99UwrPLHYT9aCZjcbvQHmwNpwTEEnfAmdEC0BNHhIws7AVf7wJWxejD9olRFA5oL rVAw== X-Gm-Message-State: APjAAAV93I77x+/QWU7fVhdoCbpTpT+R9jznwFGaX5kIBrY6GilTs26j 5QGFhMCroyQeR31ZzUW6w+A= X-Received: by 2002:a17:902:2aa9:: with SMTP id j38mr8317370plb.206.1559755152756; Wed, 05 Jun 2019 10:19:12 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id n13sm17135548pgh.6.2019.06.05.10.19.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 10:19:11 -0700 (PDT) Date: Wed, 5 Jun 2019 22:49:08 +0530 From: Hariprasad Kelam To: Thomas Winischhofer , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] USB: sisusbvga: Remove unneeded variable Message-ID: <20190605171908.GA10444@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix below warning reported by coccicheck drivers/usb/misc/sisusbvga/sisusb.c:1753:5-8: Unneeded variable: "ret". Return "0" on line 1877 Signed-off-by: Hariprasad Kelam --- drivers/usb/misc/sisusbvga/sisusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/misc/sisusbvga/sisusb.c b/drivers/usb/misc/sisusbvga/sisusb.c index ea06f1f..dfe2ed1 100644 --- a/drivers/usb/misc/sisusbvga/sisusb.c +++ b/drivers/usb/misc/sisusbvga/sisusb.c @@ -1750,7 +1750,7 @@ static int sisusb_setup_screen(struct sisusb_usb_data *sisusb, static int sisusb_set_default_mode(struct sisusb_usb_data *sisusb, int touchengines) { - int ret = 0, i, j, modex, bpp, du; + int i, j, modex, bpp, du; u8 sr31, cr63, tmp8; static const char attrdata[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, @@ -1874,7 +1874,7 @@ static int sisusb_set_default_mode(struct sisusb_usb_data *sisusb, SETIREG(SISCR, 0x34, 0x44); /* we just set std mode #44 */ - return ret; + return 0; } static int sisusb_init_gfxcore(struct sisusb_usb_data *sisusb) -- 2.7.4