diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2015-06-07 15:23:47 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2015-06-07 15:23:47 +0000 |
commit | 9f3b0ae267e7eaa528c9f0b0f79f9c2fe8207672 (patch) | |
tree | bfdfdbeca91229bf81977e0ea1162078cd6251c9 /camlibs | |
parent | 886cff59d6e77ade6338d9599023e6263a5e623d (diff) | |
download | libgphoto2-9f3b0ae267e7eaa528c9f0b0f79f9c2fe8207672.tar.gz |
remove some dead code (Coverity)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15449 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs')
-rw-r--r-- | camlibs/sierra/sierra-usbwrap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/camlibs/sierra/sierra-usbwrap.c b/camlibs/sierra/sierra-usbwrap.c index 6be6a4299..8e4a9d62e 100644 --- a/camlibs/sierra/sierra-usbwrap.c +++ b/camlibs/sierra/sierra-usbwrap.c @@ -319,7 +319,7 @@ usb_wrap_RDY(gp_port* dev, unsigned int type) sense_buffer, sizeof(sense_buffer), (char*)&msg, sizeof(msg)); if (ret<GP_OK) GP_DEBUG( "usb_wrap_RDY *** FAILED" ); - return GP_OK; + return ret; } static int @@ -344,9 +344,7 @@ usb_wrap_STAT(gp_port* dev, unsigned int type) if (ret < GP_OK) { GP_DEBUG( "usb_wrap_STAT *** FAILED" ); - if (ret < GP_OK) - return ret; - return GP_ERROR; + return ret; } xlen = uw_value(sizeof(msg)); |