From: Sage Weil Date: Thu, 25 Mar 2010 17:19:43 +0000 (-0700) Subject: osd: drop useless ENOMEM check X-Git-Tag: v0.20~188 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4ecd615a2286a0027c8a37fef3db3fa1c7ef74b8;p=ceph.git osd: drop useless ENOMEM check 'new' will throw an exception if it fails, not return NULL. --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index fbe90852c4a0..d504220b7b35 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -1700,11 +1700,6 @@ bool OSD::ms_verify_authorizer(Connection *con, int peer_type, Session *s = (Session *)con->get_priv(); if (!s) { s = new Session; - if (!s) { - dout(0) << "ouch.. out of memory, can't open session" << dendl; - isvalid = false; - return false; - } con->set_priv(s->get()); dout(10) << " new session " << s << dendl; }