Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC448C4167E for ; Tue, 8 Feb 2022 22:24:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380578AbiBHWYC (ORCPT ); Tue, 8 Feb 2022 17:24:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386291AbiBHUBO (ORCPT ); Tue, 8 Feb 2022 15:01:14 -0500 Received: from mxout03.lancloud.ru (mxout03.lancloud.ru [45.84.86.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A0FDC0613CB for ; Tue, 8 Feb 2022 12:01:12 -0800 (PST) Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout03.lancloud.ru 0821820A2D4C Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [PATCH] usb: core: devices: drop unreachable code in usb_dump_endpoint_descriptor() From: Sergey Shtylyov To: Greg Kroah-Hartman , References: Organization: Open Mobile Platform Message-ID: <7a352b9b-0073-ad61-cbbf-256ec90e3ba3@omp.ru> Date: Tue, 8 Feb 2022 23:01:09 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT01.lancloud.ru (fd00:f066::141) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On 2/8/22 10:58 PM, Sergey Shtylyov wrote: > The *switch* statement in usb_dump_endpoint_descriptor() does handle all > possible endpoint types expilictly, so the *defaut* label is unreachable. It's *default*. :-) Please fix when/if merging! > > Found by Linux Verification Center (linuxtesting.org) with the SVACE static > analysis tool. > > Signed-off-by: Sergey Shtylyov [...] MBR, Sergey