Unverified Commit 0ae7fd3d authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #59166 from zhangxiaoyu-zidif/clean-err-rbd

Automatic merge from submit-queue (batch tested with PRs 63251, 59166, 63250, 63180, 63169). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. clean one redundant comment of rbd.go **What this PR does / why we need it**: This is a small PR for cleanup. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
parents 95841fe5 03d338a7
...@@ -434,7 +434,6 @@ func (plugin *rbdPlugin) NewBlockVolumeMapper(spec *volume.Spec, pod *v1.Pod, _ ...@@ -434,7 +434,6 @@ func (plugin *rbdPlugin) NewBlockVolumeMapper(spec *volume.Spec, pod *v1.Pod, _
uid = pod.UID uid = pod.UID
} }
secret := "" secret := ""
// var err error
if pod != nil { if pod != nil {
secretName, secretNs, err := getSecretNameAndNamespace(spec, pod.Namespace) secretName, secretNs, err := getSecretNameAndNamespace(spec, pod.Namespace)
if err != nil { if err != nil {
...@@ -862,7 +861,6 @@ func (rbd *rbdDiskMapper) SetUpDevice() (string, error) { ...@@ -862,7 +861,6 @@ func (rbd *rbdDiskMapper) SetUpDevice() (string, error) {
} }
func (rbd *rbd) rbdGlobalMapPath(spec *volume.Spec) (string, error) { func (rbd *rbd) rbdGlobalMapPath(spec *volume.Spec) (string, error) {
var err error
mon, err := getVolumeSourceMonitors(spec) mon, err := getVolumeSourceMonitors(spec)
if err != nil { if err != nil {
return "", err return "", err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment