]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: refactor S_ISCHR/S_ISBLK with helpers
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 7 Jan 2021 07:03:13 +0000 (16:03 +0900)
committerKeith Busch <kbusch@kernel.org>
Tue, 12 Jan 2021 22:13:43 +0000 (15:13 -0700)
commitcd0ec8a6ed0580419c518b1fc22479a8638370ff
tree5e352ccc16e2cf48ac63caba8083f6fa73316e8e
parent8cbbd231ff19b3b1b1dab797374d6c1f8bcefff8
nvme: refactor S_ISCHR/S_ISBLK with helpers

This patch refactors S_ISCHR/S_ISBLK macros to helper functions for
readability.  The global variable nvme_stat does no longer need to be in
subcommand handlers.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme.c