units: handle the situation where it an array of bytes
commit6f6d37b5594da023a3b62ca6b62cd4daeada81cf
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 12 Jun 2023 12:58:19 +0000 (12 15:58 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Mon, 12 Jun 2023 12:58:19 +0000 (12 15:58 +0300)
tree2f9cd02ccd9c35ee0454b43365387106767540b8
parent540a0f80ee9934ee5a2f18e9509cddb82fce8bdc
units: handle the situation where it an array of bytes

Sometimes you have an array of bytes and people use both sizeof() and
ARRAY_SIZE() to describe the size.  This is an ugly thing to do, but
this is a style debate and not a bug.  So in that situation just say that
treat it as bytes.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
smatch_units.c