diff options
author | Lokesh <l.kasana@samsung.com> | 2020-01-23 16:14:41 +0530 |
---|---|---|
committer | Lokesh <l.kasana@samsung.com> | 2020-02-05 14:09:48 +0530 |
commit | 6e7e7e0e537a063e1d318cd5aa7d846131e60ce8 (patch) | |
tree | 22169186c60831670518532b7f5533900f43b219 | |
parent | 8e98150bdb9e8fbf5c44726919d57735b9173144 (diff) | |
download | smartcard-service-accepted/tizen_6.0_unified.tar.gz smartcard-service-accepted/tizen_6.0_unified.tar.bz2 smartcard-service-accepted/tizen_6.0_unified.zip |
Remove unnecessary case of SCARD_ERROR_OK for THROW_ERRORtizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.114803submit/tizen_6.0_hotfix/20201102.192503submit/tizen_6.0/20201029.205103submit/tizen/20200210.035148accepted/tizen/unified/20200210.131738accepted/tizen/6.0/unified/hotfix/20201103.051600accepted/tizen/6.0/unified/20201030.120547tizen_6.0_hotfixtizen_6.0accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unified
THROW_ERROR is always called if errorCode != SCARD_ERROR_OK
Hence switch case of SCARD_ERROR_OK was shown redundant by coverity.
Change-Id: I81a878f8c05e599068662828438201cd8d95dc9d
Signed-off-by: Lokesh <l.kasana@samsung.com>
-rw-r--r-- | common/include/Exception.h | 8 | ||||
-rwxr-xr-x | packaging/smartcard-service.spec | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/common/include/Exception.h b/common/include/Exception.h index 8dc9f9e..82a9f7d 100644 --- a/common/include/Exception.h +++ b/common/include/Exception.h @@ -28,10 +28,6 @@ { \ switch (errorCode) \ { \ - case SCARD_ERROR_OK : \ - /* do nothing */ \ - break; \ - \ case SCARD_ERROR_IPC_FAILED : \ case SCARD_ERROR_IO_FAILED : \ case SCARD_ERROR_OPERATION_TIMEOUT : \ @@ -225,10 +221,6 @@ namespace smartcard_service_api { switch (errorCode) { - case SCARD_ERROR_OK : - /* do nothing */ - break; - case SCARD_ERROR_IPC_FAILED : case SCARD_ERROR_IO_FAILED : case SCARD_ERROR_OPERATION_TIMEOUT : diff --git a/packaging/smartcard-service.spec b/packaging/smartcard-service.spec index d996701..3dd4ea2 100755 --- a/packaging/smartcard-service.spec +++ b/packaging/smartcard-service.spec @@ -1,6 +1,6 @@ Name: smartcard-service Summary: Smartcard Service FW -Version: 0.1.58 +Version: 0.1.59 Release: 0 Group: Network & Connectivity License: Apache-2.0 |