Remove unreachable error check in RBDUtil#cleanOldRBDFile

This commit is contained in:
Ted Yu 2019-09-21 19:14:24 -07:00
parent 53b3c8968e
commit 2f3e563749

View File

@ -570,10 +570,6 @@ func (util *RBDUtil) cleanOldRBDFile(plugin *rbdPlugin, rbdFile string) error {
return fmt.Errorf("rbd: decode err: %v.", err) return fmt.Errorf("rbd: decode err: %v.", err)
} }
if err != nil {
klog.Errorf("failed to load rbd info from %s: %v", rbdFile, err)
return err
}
// Remove rbd lock if found. // Remove rbd lock if found.
// The disk is not attached to this node anymore, so the lock on image // The disk is not attached to this node anymore, so the lock on image
// for this node can be removed safely. // for this node can be removed safely.