mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
lsznet sources znetcontrolunits to use search_cu() and set the variable cu_idx. lsznet's own function search_cu_tcpip() is doing the same thing as search_cu() without setting cu_idx. Declare and move cu_idx to the global variable CU_IDX and consolidate the functions by letting search_cu_tcpip() set CU_IDX. Call search_cu_tcpip() instead of search_cu() and replace cu_idx with CU_IDX accordingly. search_cu() is removed and the CU_DEVDRV array is moved to lsznet. Reviewed-by: Aswin Karuvally <aswin@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>