drivers: can: mcan: consolidate `filter_id` bounds checking

Consolidate lower and upper bounds checking of `filter_id`
at `can_mcan_remove_rx_filter` function entry to avoid checking
upper bounds while holding the mutex.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
1 file changed