mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-12 02:43:42 +03:00
(mc_ctl): join conditions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
e2c62afcc7
commit
28e4dfd059
@ -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);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user