From: <mar...@us...> - 2009-12-12 11:26:29
|
Revision: 12552 http://gphoto.svn.sourceforge.net/gphoto/?rev=12552&view=rev Author: marcusmeissner Date: 2009-12-12 11:26:20 +0000 (Sat, 12 Dec 2009) Log Message: ----------- return out of the default branch (Coverity) Modified Paths: -------------- trunk/libgphoto2/camlibs/konica/library.c Modified: trunk/libgphoto2/camlibs/konica/library.c =================================================================== --- trunk/libgphoto2/camlibs/konica/library.c 2009-12-12 11:15:31 UTC (rev 12551) +++ trunk/libgphoto2/camlibs/konica/library.c 2009-12-12 11:26:20 UTC (rev 12552) @@ -474,16 +474,13 @@ &size); break; default: - r = GP_ERROR_NOT_SUPPORTED; + return (GP_ERROR_NOT_SUPPORTED); } camera->pl->timeout = gp_camera_start_timeout (camera, PING_TIMEOUT, timeout_func); - C(r); C(gp_file_set_data_and_size (file, (char*)fdata, size)); - C(gp_file_set_mime_type (file, GP_MIME_JPEG)); - - return (GP_OK); + return gp_file_set_mime_type (file, GP_MIME_JPEG); } static int This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |