afs: Improve exception handling in afs_net_init()
From: Markus Elfring
Date: Mon Jun 01 2020 - 15:34:39 EST
Hello,
I have accidentally taken another look at the implementation of
the function âafs_net_initâ.
I noticed that the statement ânet->live = false;â was specified three times
for exception handling at the end.
https://elixir.bootlin.com/linux/v5.7/source/fs/afs/main.c#L127
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/afs/main.c?id=9bf9511e3d9f328c03f6f79bfb741c3d18f2f2c0#n127
Can it be that two of these assignments are redundant then?
Regards,
Markus