Commits
![Aaro Koskinen](https://secure.gravatar.com/avatar/69224938eb01209155233b4ddce56486.jpg?s=96&d=mm)
Aaro Koskinen committed 0ad1ed99d6c
staging: octeon: validate interface before calling INDEX Some helper functions call INDEX before checking if the interface is valid. Since pow0 is not a real interface, we get the following errors: cvmx_helper_get_interface_index_num: Illegal IPD port number Fix by using INDEX only when needed with real interfaces. Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>