(mc_ctl): join conditions.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-07-07 15:42:03 +03:00
parent e2c62afcc7
commit 28e4dfd059

View File

@ -362,10 +362,8 @@ mc_ctl (int handle, int ctlop, void *arg)
void *fsinfo = NULL;
vfs = vfs_class_find_by_handle (handle, &fsinfo);
if (vfs == NULL)
return 0;
return vfs->ctl != NULL ? vfs->ctl (fsinfo, ctlop, arg) : 0;
return (vfs == NULL || vfs->ctl == NULL) ? 0 : vfs->ctl (fsinfo, ctlop, arg);
}
/* --------------------------------------------------------------------------------------------- */