]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_rados.cc: remove not needed code
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 13 May 2013 17:50:43 +0000 (19:50 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 16 May 2013 12:11:02 +0000 (14:11 +0200)
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 <danny.al-gaaf@bisect.de>
src/rgw/rgw_rados.cc

index 67d8b55552780e229a6be2b8ecf94bf07677d6e8..e74e532bdacd784ba64e511d7014a536f738f47c 100644 (file)
@@ -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();
     }
   }