diff options
author | Tom Rix <trix@redhat.com> | 2020-10-19 12:35:24 -0700 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-10-26 12:07:50 +0100 |
commit | f09056c1decec889721c24c72f99730376918044 (patch) | |
tree | 1f40310871933d6d2b8f7ec3108b846a3b0c7131 /drivers/edac | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) | |
download | linux-f09056c1decec889721c24c72f99730376918044.tar.gz linux-f09056c1decec889721c24c72f99730376918044.tar.bz2 linux-f09056c1decec889721c24c72f99730376918044.zip |
EDAC/amd64: Remove unneeded breaks
A break is not needed if it is preceded by a return.
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Robert Richter <rric@kernel.org>
Link: https://lkml.kernel.org/r/20201019193524.13391-1-trix@redhat.com
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/amd64_edac.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 1362274d840b..3bac76efd3f6 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; } |