sm3600: fix [-Wunused-but-set-variable] compiler warning

merge-requests/1/head
Olaf Meeuwissen 2015-12-26 13:18:13 +09:00
rodzic 82720a2023
commit 9d4f2a7209
1 zmienionych plików z 0 dodań i 3 usunięć

Wyświetl plik

@ -458,7 +458,6 @@ sane_open (SANE_String_Const devicename, SANE_Handle *handle)
{
TDevice *pdev;
TInstance *this;
SANE_Status rc;
DBG(DEBUG_VERBOSE,"opening %s\n",devicename);
if (devicename[0]) /* selected */
{
@ -488,8 +487,6 @@ DBG(DEBUG_VERBOSE,"%s<>%s\n",devicename, pdev->sane.name);
if (sanei_usb_open (devicename, &this->hScanner) != SANE_STATUS_GOOD)
return SetError (this, SANE_STATUS_IO_ERROR, "cannot open scanner device");
rc = SANE_STATUS_GOOD;
this->quality=fast;
return InitOptions(this);
}