From: <mar...@us...> - 2015-06-07 15:26:01
|
Revision: 15450 http://sourceforge.net/p/gphoto/code/15450 Author: marcusmeissner Date: 2015-06-07 15:25:58 +0000 (Sun, 07 Jun 2015) Log Message: ----------- one more dead code piece (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:23:47 UTC (rev 15449) +++ trunk/libgphoto2/camlibs/sierra/sierra-usbwrap.c 2015-06-07 15:25:58 UTC (rev 15450) @@ -422,9 +422,7 @@ if (ret < GP_OK) { GP_DEBUG( "usb_wrap_SIZE *** FAILED" ); - if (ret < GP_OK) - return ret; - return GP_ERROR; + return ret; } xlen = uw_value(sizeof(msg)); if (!UW_EQUAL(msg.length, xlen) || !UW_EQUAL(msg.packet_type, UW_PACKET_DATA)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |