Bugfix: On error, return the actual error code in sanei_magic_rotate

Up to now, on failure the sanei_magic_rotate function returned a
success status.  This fixes the following GCC warning:

warning: variable 'ret' set but not used
merge-requests/1/head
Volker Diels-Grabsch 2015-12-06 02:37:10 +01:00 zatwierdzone przez Olaf Meeuwissen
rodzic 6aced758f4
commit badd7025b2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -710,7 +710,7 @@ sanei_magic_rotate (SANE_Parameters * params, SANE_Byte * buffer,
DBG(10,"sanei_magic_rotate: finish\n");
return 0;
return ret;
}
SANE_Status