]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: use sysfs_match_string() instead of __sysfs_match_string()
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 28 Jun 2019 11:59:32 +0000 (19:59 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2019 13:39:14 +0000 (07:39 -0600)
commite46fa412e5d65e29c9208a9b2a5c5e00d70a7df2
tree4f829f5f4aba4da6c1e974d6c78c6bb522c113d7
parentc3d103bda1ad21af43bb941d097fecc405f718eb
bcache: use sysfs_match_string() instead of __sysfs_match_string()

The arrays (of strings) that are passed to __sysfs_match_string() are
static, so use sysfs_match_string() which does an implicit ARRAY_SIZE()
over these arrays.

Functionally, this doesn't change anything.
The change is more cosmetic.

It only shrinks the static arrays by 1 byte each.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/sysfs.c