From: Danny Al-Gaaf Date: Mon, 13 May 2013 17:50:43 +0000 (+0200) Subject: rgw/rgw_rados.cc: remove not needed code X-Git-Tag: v0.64~119^2~25 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aa11c68fdd09a51238c9bbfca5f9518f7a537818;p=ceph.git rgw/rgw_rados.cc: remove not needed code Fix for cppcheck warning: [src/rgw/rgw_rados.cc:2390]: (warning) Assignment of function parameter has no effect outside the function. Assignment of if_nomatch_str.c_str() to if_nomatch has no effect outside the function and the functions isn't used inside the function after the assignment. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 67d8b5555278..e74e532bdacd 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -2387,7 +2387,6 @@ int RGWRados::prepare_get_obj(void *ctx, rgw_obj& obj, r = -ERR_NOT_MODIFIED; goto done_err; } - if_nomatch = if_nomatch_str.c_str(); } }