staging: comedi: Remove unecessary function and it's call
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Tue, 7 Oct 2014 17:50:24 +0000 (23:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:13 +0000 (10:29 +0800)
commitc6c04f05115eaca1badc0232a8f75e2e120f8f15
tree6af3d00f52049614cf4c316a359a94a27fa5ae29
parentfe43ec5350d34244dedf3e6647f991f7c348c82d
staging: comedi: Remove unecessary function and it's call

Function aref_invalid has unreachable code as it right now
just returns 0 after declaring a variable.
This patch removes this function and it's single call.

As it is static so it's obvious that it is not used anywhere
other than this file or somewhere, where this is included.
I also build tested it.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/range.c