]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/Server.cc: remove dead default in switch
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 10 May 2013 13:12:26 +0000 (15:12 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 10 May 2013 22:02:55 +0000 (00:02 +0200)
The default switch can't get executed since the switch value
can only have the two values already checked.

CID 716894 Dead default in switch (CWE-561)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mds/Server.cc

index 1e62dd2dfbae5f23b889922b6ee323ec45845eed..d97047d6d49baa8193b3d96b1f1966e71657fead 100644 (file)
@@ -1494,8 +1494,6 @@ void Server::dispatch_slave_request(MDRequest *mdr)
          wrlocks.insert(lock);
          replycode = MMDSSlaveRequest::OP_WRLOCKACK;
          break;
-       default:
-         assert(0);
        }
        
        if (!mds->locker->acquire_locks(mdr, rdlocks, wrlocks, xlocks))