fdp: cleanup init
authorJens Axboe <axboe@kernel.dk>
Tue, 28 Feb 2023 15:28:51 +0000 (08:28 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Feb 2023 15:28:51 +0000 (08:28 -0700)
commit5a85d6d89ee4e8bcdc1243a5e32d87cf713ebce2
treea6956f606c2fb49e074d4a505b75584c8d8610be
parenta7e8aae0220458e3d3bfa12c04835a63bbf152e2
fdp: cleanup init

I don't believe we can have a NULL ->io_ops here, but let's just
add an error check and make the static checkers happy as they don't
like the non-NULL check and then a later deref in the other branch.

Add missing braces while at it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fdp.c