dm vdo: clean up scnprintf usage
authorChung Chung <cchung@redhat.com>
Mon, 19 Feb 2024 20:58:24 +0000 (15:58 -0500)
committerMike Snitzer <snitzer@kernel.org>
Mon, 4 Mar 2024 20:07:55 +0000 (15:07 -0500)
commit81c751ad1b7f55e0ae04c51bb29c7d855754e3b3
tree82c883db1d47fc8862e658f830ce230df6c90fd6
parent20be466c7a967a5743890e850914c3e86117ac15
dm vdo: clean up scnprintf usage

Ignore scnprintf return status since it is not necessary. Change
write_* functions type from int to void since we no longer return
any result. Also, clean up any code that checks or uses any scnprintf
return results.
Check uds_allocate return code which was previous ignored, return
and log error when uds_allocate failed.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Chung Chung <cchung@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-vdo/message-stats.c