Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4256594pxk; Tue, 8 Sep 2020 15:09:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz6U6JxwRjxmboxcaNOxo4HIeU5cT1ti6Bq5FxYaez61a4WAKGO4cNJikOvSG94JobmQrd X-Received: by 2002:a17:906:2712:: with SMTP id z18mr624491ejc.380.1599602977078; Tue, 08 Sep 2020 15:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599602977; cv=none; d=google.com; s=arc-20160816; b=H13dFg0+GylqdCeZh/Ng+oExb9lau/eHmzk6FvtJpeWfhc4VvXb7fiaZkZXCRlpxN/ VB5Zuc1ZBIKFX0IOfAGg/Anjk6cYy+Eo+1pFrfOEvSNOlc1esEyZVFoaZm443eOhs0tt 76Ir1FAp3zEj/Ka2epK7LGAdM8Xfa81uWHt88PsUafCDFwSqFVIVuq6pxKDgw86AEb2Z kKsF4jkDXlSY6A0z12cNI4spV2ktnd9en4dubwTSrK6NDDJk5F9y1o2IguRpLovkikuU gV4DfaL75G2vxJBzYEDAaOi46zkNZQ3WjwtbzUPE9yzFmoBOL/dPIWBxCsFPL+gTH1je k9Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=vzVX6cm7FRAuAT4SS0a0gVxWccN+Eqz39ANV3xL35eQ=; b=VJtUgYqey+/rjL0LJAA+tBHb9RyMFkIyB8Z9whm7vDX0QDcBJtoFOJdTdP4EK2LmGb AWByg+U0KhxUc6zqptc2Ux1BHymDgBdxQbW7CaS+LCqwQeyl0XVFZShwlfSgQNHXNhs+ Oot+SQU7XehG70PlIbtXDm95NVuZGutcs2T+dTRsM5SANS2VTHHd5asrDBcHv3xXa0Rv YNrAKmvT5Zw75oERQevsrZD3eJpmiUDHlFoGCskv+dnkbU06cEaHJK9HtrllRv58Sfzw SgCAIhLiZxSz5rZqk0L3ozXLhweLWt5j5JC+hUzJiqxZKUHq0vsVKdO4KcEpAS7+86Mh i3Iw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si206379ejj.497.2020.09.08.15.09.13; Tue, 08 Sep 2020 15:09:37 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728184AbgIHWIh convert rfc822-to-8bit (ORCPT + 99 others); Tue, 8 Sep 2020 18:08:37 -0400 Received: from mga07.intel.com ([134.134.136.100]:56112 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726369AbgIHWIg (ORCPT ); Tue, 8 Sep 2020 18:08:36 -0400 IronPort-SDR: 7cn6yonKJx9eGFYWYrpRUlas6gfSx/Kz5qKUC90bncyqxqVvJobyXoc8FeMHT9Q+naZOTcEShp 8aduVjc+sCdA== X-IronPort-AV: E=McAfee;i="6000,8403,9738"; a="222438979" X-IronPort-AV: E=Sophos;i="5.76,407,1592895600"; d="scan'208";a="222438979" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 15:08:35 -0700 IronPort-SDR: iD9INV+cK10hvjNf5wcoCWfECqjkvPJqs+NlqjOxlQIBOkqvk9Fz6c3A70SJlr4O8fPg3Hqkn0 ARgq+EuH9Tew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,407,1592895600"; d="scan'208";a="317340286" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga002.jf.intel.com with ESMTP; 08 Sep 2020 15:08:34 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 8 Sep 2020 15:08:32 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 9 Sep 2020 06:08:30 +0800 Received: from fmsmsx610.amr.corp.intel.com ([10.18.126.90]) by fmsmsx610.amr.corp.intel.com ([10.18.126.90]) with mapi id 15.01.1713.004; Tue, 8 Sep 2020 15:08:28 -0700 From: "Luck, Tony" To: "trix@redhat.com" , "Zhuo, Qiuxu" , "bp@alien8.de" , "mchehab@kernel.org" , "james.morse@arm.com" , "rric@kernel.org" , "natechancellor@gmail.com" , "ndesaulniers@google.com" CC: "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "clang-built-linux@googlegroups.com" Subject: RE: [PATCH] EDAC: sb_edac: simplify switch statement Thread-Topic: [PATCH] EDAC: sb_edac: simplify switch statement Thread-Index: AQHWhSwd2aPyoNmgw0mlzN1Re9AsfalfTkog Date: Tue, 8 Sep 2020 22:08:28 +0000 Message-ID: <7525690b6aaa4e539989b9c2e5703a56@intel.com> References: <20200907153225.7294-1-trix@redhat.com> In-Reply-To: <20200907153225.7294-1-trix@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [10.1.200.100] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > However by initializing the type to DEV_UNKNOWN the 3 case can be > removed from the switch, saving a comparison and jump. > > Signed-off-by: Tom Rix Applied. Thanks. -Tony [Boris: Pushed to edac-misc and edac-for-next branches in RAS tree]