]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
rbd: make const pointer speaces a static const array
authorColin Ian King <colin.i.king@googlemail.com>
Sat, 27 Nov 2021 17:21:04 +0000 (17:21 +0000)
committerJeff Layton <jlayton@kernel.org>
Tue, 7 Dec 2021 14:53:33 +0000 (09:53 -0500)
commit173f7c71fd632d77613eb8f23b8e10d19f4d22c3
treea5c709521bfc8ba6878468e4ca2b3e2e8b1de851
parent60cb2a6b188864172a4830cb1c7a4740896d0b6f
rbd: make const pointer speaces a static const array

Don't populate the const array spaces on the stack but make it static
const and make the pointer an array to remove a dereference. Shrinks
object code a little too.  Also clean up intent, currently it is spaces
and should be a tab.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
drivers/block/rbd.c