diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2021-07-12 21:51:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-13 12:35:27 (GMT) |
commit | 700abe7bca0486a2d67383b2e8e364db241566b5 (patch) | |
tree | eafa14e5bef3f6b86e6cb18c05b2c92cbf79211d /Source/CPack | |
parent | 460e812369db398da34e14c9d40c3ecec06afaf1 (diff) | |
download | CMake-700abe7bca0486a2d67383b2e8e364db241566b5.zip CMake-700abe7bca0486a2d67383b2e8e364db241566b5.tar.gz CMake-700abe7bca0486a2d67383b2e8e364db241566b5.tar.bz2 |
Refactor: Drop useless assignments of `retval` before return
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index db30a0d..14f3f50 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -508,8 +508,7 @@ int cmCPackDebGenerator::PackageOnePack(std::string const& initialTopLevel, if (!this->ReadListFile("Internal/CPack/CPackDeb.cmake")) { cmCPackLogger(cmCPackLog::LOG_ERROR, "Error while execution CPackDeb.cmake" << std::endl); - retval = 0; - return retval; + return 0; } { // Isolate globbing of binaries vs. dbgsyms @@ -660,8 +659,7 @@ int cmCPackDebGenerator::PackageComponentsAllInOne( if (!this->ReadListFile("Internal/CPack/CPackDeb.cmake")) { cmCPackLogger(cmCPackLog::LOG_ERROR, "Error while execution CPackDeb.cmake" << std::endl); - retval = 0; - return retval; + return 0; } cmsys::Glob gl; |