Re: [PATCH linux-next] net: af_key: remove redundant ret variable

From: Steffen Klassert
Date: Mon Nov 14 2022 - 01:43:51 EST


On Wed, Nov 02, 2022 at 09:46:33PM +0800, zhang.songyi@xxxxxxxxxx wrote:
> >From a09ddf4bd144610fd17bdbf07f0c27700d805e6f Mon Sep 17 00:00:00 2001
> From: zhang songyi <zhang.songyi@xxxxxxxxxx>
> Date: Wed, 2 Nov 2022 21:05:39 +0800
> Subject: [PATCH linux-next] net: af_key: remove redundant ret variable
>
> Return value from pfkey_net_init() directly instead of taking this in
> another redundant variable.
>
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> Signed-off-by: zhang songyi <zhang.songyi@xxxxxxxxxx>

pfkey is deprecated and should not be used anymore.
Please do changes to pfkey just if there is a real
bug to fix.

Thanks!