diff --git a/etcdserver/security/security.go b/etcdserver/security/security.go
index <HASH>..<HASH> 100644
--- a/etcdserver/security/security.go
+++ b/etcdserver/security/security.go
@@ -197,7 +197,7 @@ func (s *Store) GetRole(name string) (Role, error) {
 }
 
 func (s *Store) CreateOrUpdateRole(role Role) (Role, error) {
-	role, err := s.GetRole(role.Role)
+	_, err := s.GetRole(role.Role)
 	if err == nil {
 		return s.UpdateRole(role)
 	}
security: fix var shadowing in CreateOrUpdate