From patchwork Thu Aug 19 18:09:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 499757 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp772573jab; Thu, 19 Aug 2021 11:09:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+i+kIItNAlqQWKTuMs3V6Y/eCWaFD8AISxlfafEDGcCIqUzFw353SHtWKd0RW9KhOtx5w X-Received: by 2002:a05:6e02:1905:: with SMTP id w5mr10820383ilu.165.1629396589800; Thu, 19 Aug 2021 11:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629396589; cv=none; d=google.com; s=arc-20160816; b=dZiGfYH10LNMRjvIVelYa2yn7zAlmlYs0dVd9Aq+t5EDkYQ4draYNzjH0/EmF63p1j bAFmwBrXYk1jviWSSxufhzMtsUOEfWnZog2T9lgk5STSye384nLwR93NMJtTVqbzGMF/ q9flwug1zsECu96F/ICTMF1oYBhLdksDEgV6viGkeZXpvGq1tyU89NrcKIaI23h+KT6e bpXCHxc2R163HotIkbHmxuTtFklLxjB7VCpfEopxO6yt7kgmBSOjqkjYiswADtYZjdap 9mkOt+ZaPhfAW64zlOt9rkacqwhmumrIbRzA3g+0vXvM8pUzbgjhXYIKv/HA7FF1Xsy5 78Nw== 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:dkim-signature; bh=iQwjsZNOUMrWFnt3K2UNjk6w80qkewmq3jv0/4YKne0=; b=vRhcoEZgPfr/2FlWyvertrT5Zy1rmThA19dlqNRP0G28I8RQcyfX/zlBue/kS1WfOQ 7f9WrMn7GXQl9zdXtuo85TX4nvlvhw5Ba2pxsE7CZIKoMiwGmKiOuvsYUkkXtadHxi6h 12chWkHdt+lNMCLnqLjJNDu22GUhNjHxw/EtfCTFCE/1pbQBqhwK0hInfJO8NBzZqV9I XE5vVqZQ5eo/r61drLcwdLge7S9o+8G++E4uDUeKUxmTkOBAdlNsHDyat//VXd/8GcWQ 7dp+miliImOo+HOxoj/tOdfF9Y7wYan2HcpRCk9oxLdOe1hES+YL8OSOZh0CisoZYnE9 91eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KAspNOp8; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h10si3606755ioe.21.2021.08.19.11.09.49; Thu, 19 Aug 2021 11:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KAspNOp8; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232909AbhHSSKZ (ORCPT + 4 others); Thu, 19 Aug 2021 14:10:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbhHSSKY (ORCPT ); Thu, 19 Aug 2021 14:10:24 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 297C1C061575 for ; Thu, 19 Aug 2021 11:09:48 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id h13so10429545wrp.1 for ; Thu, 19 Aug 2021 11:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iQwjsZNOUMrWFnt3K2UNjk6w80qkewmq3jv0/4YKne0=; b=KAspNOp8gVf05uxyJRlLkqLMds021Druu/nrUZjP+FDP6fkXmoOjGDdiDD6fWnoGil eWxkzY8/K6jUqGWFcFKg5g1WoTxJsiMKaXrbTjZ073y6WaGrypcE2pTZ0NXyDK1Gnol7 ELFwR4yNQIG4ky7p9pJJMtO9MI3Tpa5qNFTIAnxXTQ0W3zhG3kY3NP0KZOgo8STVn9yM WFqg3BJXlLBB+L+5+Z2xncYuUGyY9sE408eAex3IFkdw+IAxiFkvbnMEbLBxpexhaOW+ 16iKTzSJ70uHxOoJOTEwYQ3ozS323fD2gXQ1PD/ziOgnrEl20nXLm3enLSl36cJxUIU1 BijA== 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:mime-version :content-transfer-encoding; bh=iQwjsZNOUMrWFnt3K2UNjk6w80qkewmq3jv0/4YKne0=; b=GQJGo5UH5xBQ3ZgnCCd4r4Y6L6qzXS1Z8YM/Kuew998RrnNrb03ZgwuiHSeRPKmRjV 2TXZEG/RZbRPydpGW9l5Bl8MkcG6Vjg6RA5CBFrzAUvJulP7qSZb/y088m81qYMVypRG Zgz0YSUlmcVkxJPXgLIKso2T/9BiZzEMKVHII8zm1XnlWeqDlF96fL2ywitPSR5DEn6E sx9EVquo48ObujduW8lT7Fv278V4AkddPUDmUu0hJOf5x3V/FuN6fVIcdtiAba8CJ3Rw aXcBy8Rx89yQoGGTSHRP1ztzOuBgIFT9AF/lSnSEto6nV5dLc6Rk1kZ64Ckmy7d3Fj4o PiuQ== X-Gm-Message-State: AOAM533GeV2X9i1bT0tpyhknqLPrGL3OS+ueT+vklWYV3FA54vXgspIz rrK10FOlmvVbvz0X6cLl0SVwAA== X-Received: by 2002:adf:dd92:: with SMTP id x18mr5545219wrl.123.1629396586802; Thu, 19 Aug 2021 11:09:46 -0700 (PDT) Received: from arch-thunder.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id h16sm3625668wre.52.2021.08.19.11.09.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 11:09:46 -0700 (PDT) From: Rui Miguel Silva To: Greg Kroah-Hartman , Alan Stern Cc: linux-usb@vger.kernel.org, Rui Miguel Silva Subject: [PATCH 0/5] usb: isp1760: clang analyzer fixes Date: Thu, 19 Aug 2021 19:09:24 +0100 Message-Id: <20210819180929.1327349-1-rui.silva@linaro.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This are fixes for new and pre existing warnings noted by clang analyzer in this driver which complains about some unused read values, shift left using negative uninitialized slot numbers and zero maxpacketsize. Cheers, Rui Rui Miguel Silva (5): usb: isp1760: ignore return value for bus change pattern usb: isp1760: check maxpacketsize before using it usb: isp1760: do not reset retval usb: isp1760: do not shift in uninitialized slot usb: isp1760: clean never read udc_enabled warning drivers/usb/isp1760/isp1760-core.c | 4 ++-- drivers/usb/isp1760/isp1760-hcd.c | 31 ++++++++++++++++++------------ 2 files changed, 21 insertions(+), 14 deletions(-) -- 2.33.0