Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3804930pxu; Tue, 20 Oct 2020 00:26:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznST9Ph4FnocWhuEPunL8ZH4b32erkMCZ5+zFsaB9aJ6zeC0Fz1eUuU6HdlbT0RpUj9VqT X-Received: by 2002:a05:6402:396:: with SMTP id o22mr1362012edv.361.1603178793927; Tue, 20 Oct 2020 00:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603178793; cv=none; d=google.com; s=arc-20160816; b=kfaOafAsztBqz0hgnXH8nADCxkNzYVAFBugBDNLOptCyUyjDn/37EEw8mDNa9WE9sA EY2/+gRX8eK6iyH+PTaI6rzrLSkQmpQtzgdZKgam5rt6a6ev2EEphSe81V1zOoe4I0xF jKjSs+USk5KgeyoNx6xw6/G4GPHYEIbK8aMJyvkwvm615tzSvMaECFOF0KHn2wly0PKu agBdcY3SptBZFFHkQ5UssPIX1AmAkB6+sGkp99n4aALFhdgpoXQgHz0uI56MJNDZpzI+ REeBVW7B6v7lXXcW8NoyeErBWrUqW6dwHr5D1NwDWSg1dNHKzEfc/Y35v636U4v914Ny ltlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=C9AZJInHSA4bqiVYuqisAmQR3f3OqCj1KITHHKH76j8=; b=S81HudGhtAjXPLx+oc9GbxiAtGCcLBgPkBTHHgSLzyyd4tpRuVmSIJQPK9M/itn6md awLBk5PMpaCcocfdHkleISAk4oMGeeOjC2a1Wt4Sdu8LVxjNiLMkzMPS4j6ahpr6MzFQ tgVdoOreCNXRBojxxxhhh6m76TVcekA90xRnjN/fHwxmvl8Am7T6H7Afx3l6qzNlLXDc v6H5HdJ5O42IQ2NioCZQ45WcOZ+sh8Jk5r5zygM8hLl9akohj2bUKHwmATu6NzvvgXTg IsRFIOXFNzSEwvrX3537421H/gyq5mQm26lK8C7ZxDj40CaESLb1XLLVF6EubfAx3rXd h/WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="AA/5OToy"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si685309ejd.359.2020.10.20.00.26.09; Tue, 20 Oct 2020 00:26:33 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="AA/5OToy"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731203AbgJSTfc (ORCPT + 99 others); Mon, 19 Oct 2020 15:35:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:49476 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727681AbgJSTfc (ORCPT ); Mon, 19 Oct 2020 15:35:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603136131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=C9AZJInHSA4bqiVYuqisAmQR3f3OqCj1KITHHKH76j8=; b=AA/5OToyYjNvmTcX1fmYwyuPYDWQ96yJchYMvi+SCsLkbRWPe3KbY3U0kOELl5taL3AHo/ TPZvt2Nq4UQ+iH+Ea/oKzNSt4c8JOC9wn71hpm0KZ+mbdO5KISHojuDAZMvGEN7ZxfNIDl a3Eh/hP0IT9BH5qJzMVqxTC5DUEMJOs= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-386-pUK-fHR7N1ioyVxJ33PJQA-1; Mon, 19 Oct 2020 15:35:30 -0400 X-MC-Unique: pUK-fHR7N1ioyVxJ33PJQA-1 Received: by mail-qk1-f199.google.com with SMTP id u16so463437qkm.22 for ; Mon, 19 Oct 2020 12:35:30 -0700 (PDT) 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; bh=C9AZJInHSA4bqiVYuqisAmQR3f3OqCj1KITHHKH76j8=; b=pG3WYQrGHSjHh+z80mGqK8bN95yNpfw84Ebppz/gTDOW3y3qtqqb3KXSysFS2ovF+9 3sj2phQiEXOoh3mr5bH0ZOua4wjDbN0U+ksQVTtyq86/xrX1X60rJGBH8A+NfLCNdo+J 6HmJFduT/W4CF4of+0fc5KSDnfXIkpJDAmvcw97A1JKPpAJnCBN9P/ObXhrHnRa4zFgF tw6I7AvduJ3jFxepXLxhjqA8SWZzCK4F/kuorKJ1pw4mKAwXtiA1hFYSRj86VJ6F2ho6 CnVfHd46QA/CWlPohuIqq8bg9walgrMFGIsrVFE4krEHmNLSZx1qnscCbD6JySLe82io DjDA== X-Gm-Message-State: AOAM530KsPUsf5R3b3/tG9WNyRXTXkn7BlE681cnd0GuYUaXxVmBIP7s pRYnnmn6+Cx5N5onIWsoyAq7IfAtyRcw7Z1MJBD3IkjKM5l3SzjmxK/FMtdapyKFWzJ/qYONoKX 2afNR0JfaYtHbCaLqgHBK/U9c X-Received: by 2002:ac8:59d4:: with SMTP id f20mr978040qtf.327.1603136129775; Mon, 19 Oct 2020 12:35:29 -0700 (PDT) X-Received: by 2002:ac8:59d4:: with SMTP id f20mr978021qtf.327.1603136129574; Mon, 19 Oct 2020 12:35:29 -0700 (PDT) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id p5sm363005qtu.13.2020.10.19.12.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 12:35:29 -0700 (PDT) From: trix@redhat.com To: bp@alien8.de, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] edac: amd64_edac: remove unneeded break Date: Mon, 19 Oct 2020 12:35:24 -0700 Message-Id: <20201019193524.13391-1-trix@redhat.com> X-Mailer: git-send-email 2.18.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix --- drivers/edac/amd64_edac.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index fcc08bbf6945..386a3a4cf279 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -2461,14 +2461,11 @@ static int map_err_sym_to_channel(int err_sym, int sym_size) case 0x20: case 0x21: return 0; - break; case 0x22: case 0x23: return 1; - break; default: return err_sym >> 4; - break; } /* x8 symbols */ else @@ -2478,17 +2475,12 @@ static int map_err_sym_to_channel(int err_sym, int sym_size) WARN(1, KERN_ERR "Invalid error symbol: 0x%x\n", err_sym); return -1; - break; - case 0x11: return 0; - break; case 0x12: return 1; - break; default: return err_sym >> 3; - break; } return -1; } -- 2.18.1