staging: r8188eu: don't store nr_endpoint in a global struct
authorMartin Kaiser <martin@kaiser.cx>
Fri, 26 Nov 2021 17:32:04 +0000 (18:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Dec 2021 14:11:33 +0000 (15:11 +0100)
commit47ca8d19408e250ed626e0ff20afe1b7e80cc452
tree343ab0e05052df5280c8b901cf0e8e27cf459f7c
parentd667d76b62cd41a5571203f9965cd67d1713086e
staging: r8188eu: don't store nr_endpoint in a global struct

There's no need to store the number of endpoints in a global struct.
We only need it at startup when we iterate over the endpoints.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211126173205.21352-8-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/drv_types.h
drivers/staging/r8188eu/os_dep/usb_intf.c