From: <mar...@us...> - 2015-06-07 15:23:49
|
Revision: 15449 http://sourceforge.net/p/gphoto/code/15449 Author: marcusmeissner Date: 2015-06-07 15:23:47 +0000 (Sun, 07 Jun 2015) Log Message: ----------- remove some dead code (Coverity) Modified Paths: -------------- trunk/libgphoto2/camlibs/sierra/sierra-usbwrap.c Modified: trunk/libgphoto2/camlibs/sierra/sierra-usbwrap.c =================================================================== --- trunk/libgphoto2/camlibs/sierra/sierra-usbwrap.c 2015-06-07 15:22:01 UTC (rev 15448) +++ trunk/libgphoto2/camlibs/sierra/sierra-usbwrap.c 2015-06-07 15:23:47 UTC (rev 15449) @@ -319,7 +319,7 @@ 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 @@ 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)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |