]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm: Convert to use ERR_CAST()
authorYuesong Li <liyuesong@vivo.com>
Fri, 30 Aug 2024 03:16:42 +0000 (11:16 +0800)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 2 Sep 2024 09:41:11 +0000 (11:41 +0200)
commit00565cff01262c888512bffe9d41e4831a6f2cc7
tree003ca1541fec81ae4cecd66e962e1dace0981772
parent02c0207ecdcc9abdf3442676154f8fd2be0f649a
dm: 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: Yuesong Li <liyuesong@vivo.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-thin.c