mount: drop duplicated filesystem check from mount_add_list
authorRafał Miłecki <rafal@milecki.pl>
Fri, 3 Nov 2017 09:02:39 +0000 (10:02 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 6 Nov 2017 09:37:05 +0000 (10:37 +0100)
commit75e7412d44da9886d7b8555395ea79c113aaa303
tree82caa47a8e4b5b2fd2fdddc9bcf7abf76e8a97de
parent6efeb198451a46bb8039d2892986c7f625c92649
mount: drop duplicated filesystem check from mount_add_list

At the very beginning of this function there is following code:
if(fs <= MBR || fs > LASTFS)
return;

There is no point in checking for the same range again as these checks
will always evaluate into true.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: John Crispin <john@phrozen.org>
mount.c