Skip to contentSkip to conversation

drm/amdgpu: remove unneeded semicolon

PATCH Applied [email protected] 2 participants 2 messages Oct 27, 2020 – Oct 30, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: remove unneeded semicolon

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c +1 -1
index 1b213c4ddfcb..19c0a3655228 100644
@@ -654,7 +654,7 @@ int amdgpu_pmu_init(struct amdgpu_device *adev)
 
 	default:
 		return 0;
-	};
+	}
 
 	return ret;
 }
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -1
index 8bf6a7c056bc..a61cf8cfbfc3 100644
@@ -953,7 +953,7 @@ static char *amdgpu_ras_badpage_flags_str(unsigned int flags)
 	case AMDGPU_RAS_RETIRE_PAGE_FAULT:
 	default:
 		return "F";
-	};
+	}
 }
 
 /**
Signature · 1 line
2.18.1
Applied
#1 lore raw

Applied. I dropped the first hunk as that fix had already been submitted by someone else.

Alex

Quoted 40 lines · On Tue, Oct 27, 2020 at 3:07 PM <[email protected]> wrote:

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c +1 -1
index 1b213c4ddfcb..19c0a3655228 100644
@@ -654,7 +654,7 @@ int amdgpu_pmu_init(struct amdgpu_device *adev)
 
        default:
                return 0;
-       };
+       }
 
        return ret;
 }
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -2
index 8bf6a7c056bc..a61cf8cfbfc3 100644
@@ -953,7 +953,7 @@ static char *amdgpu_ras_badpage_flags_str(unsigned int flags)
        case AMDGPU_RAS_RETIRE_PAGE_FAULT:
        default:
                return "F";
-       };
+       }
 }
 
 /**
--

2.18.1

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx