staging: qlge: re-write qlge_init_device
authorCoiby Xu <coiby.xu@gmail.com>
Sat, 23 Jan 2021 10:46:08 +0000 (18:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2021 15:54:20 +0000 (16:54 +0100)
commitb9ccc256d46554b4d3a0c08b7ecbee985ff0f256
tree467cd47b296402f0164f205b76ab8bb9750c91d8
parent953b94009377419f28fd0153f91fcd5b5a347608
staging: qlge: re-write qlge_init_device

Stop calling ql_release_all in qlge_init_device and free things one step
at a time.

struct qlge_adapter *qdev is now a private structure of struct devlink
and memset is not necessary.

Link: https://lore.kernel.org/patchwork/patch/1321092/#1516928
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Coiby Xu <coiby.xu@gmail.com>
Link: https://lore.kernel.org/r/20210123104613.38359-4-coiby.xu@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_main.c