xen/xenbus: Convert to use ERR_CAST()
authorShen Lichuan <shenlichuan@vivo.com>
Thu, 29 Aug 2024 08:47:10 +0000 (16:47 +0800)
committerJuergen Gross <jgross@suse.com>
Thu, 12 Sep 2024 06:25:13 +0000 (08:25 +0200)
commit3adc73efad83534c3f6df6580009482e2c08187d
tree284431f80378f51ea45cc6f77367ff11bfdac427
parentfbe5a6dfe492eff8b0adef85fcabd84e246f1102
xen/xenbus: Convert to use ERR_CAST()

Use ERR_CAST() as it is designed for casting an error pointer to
another type.

This macro utilizes the __force and __must_check modifiers, which instruct
the compiler to verify for errors at the locations where it is employed.

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Message-ID: <20240829084710.30312-1-shenlichuan@vivo.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xenbus/xenbus_xs.c