summaryrefslogtreecommitdiff
path: root/camlibs/minolta
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2014-04-11 20:10:32 +0000
committerMarcus Meissner <marcus@jet.franken.de>2014-04-11 20:10:32 +0000
commitc1ddde0315005e55ef361720b8b758fa163b1731 (patch)
treeef0d7fdd0ebcc010cd1c50e697eb01ddb86f2421 /camlibs/minolta
parent9e777504d448e26ace9a56f509a13a1f8fbbcf55 (diff)
downloadlibgphoto2-c1ddde0315005e55ef361720b8b758fa163b1731.tar.gz
From: "Daniel P. Berrange" <berrange@redhat.com>
A great many functions have variables which are set to some value, but never read thereafter. All these variables can be removed with no functional impact. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14896 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/minolta')
-rw-r--r--camlibs/minolta/dimagev/download.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/camlibs/minolta/dimagev/download.c b/camlibs/minolta/dimagev/download.c
index fd2211e66..db1c1a722 100644
--- a/camlibs/minolta/dimagev/download.c
+++ b/camlibs/minolta/dimagev/download.c
@@ -28,7 +28,7 @@
#define GP_MODULE "dimagev"
int dimagev_get_picture(dimagev_t *dimagev, int file_number, CameraFile *file) {
- int length, total_packets, i;
+ int total_packets, i;
unsigned long size = 0;
dimagev_packet *p, *r;
unsigned char char_buffer, command_buffer[3];
@@ -101,7 +101,6 @@ int dimagev_get_picture(dimagev_t *dimagev, int file_number, CameraFile *file) {
free(p);
total_packets = (int) r->buffer[0];
- length = ( r->length - 1 );
/* Allocate an extra byte just in case. */
if ( ( data = malloc((size_t)((993 * total_packets) + 1)) ) == NULL ) {