amdgpu: fix deinit logic
The devices weren't removed from dev_list.
Instead of just fixing the issue by adding:
if (*node) *node = dev->next;
after the while loop, use this opportunity to use a clearer control flow.
Fixes: 7275ef8e ("amdgpu: add amdgpu_device_initialize2")