Skip to content

Commit b2b2ce8

Browse files
nbdd0121axboe
authored andcommitted
block: rnull: remove imports available via prelude
These imports are already in scope by importing `kernel::prelude::*` and does not need to be imported separately. Signed-off-by: Gary Guo <[email protected]> Acked-by: Andreas Hindborg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 0d56d9c commit b2b2ce8

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/block/rnull/configfs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use kernel::{
1313
str::{kstrtobool_bytes, CString},
1414
sync::Mutex,
1515
};
16-
use pin_init::PinInit;
1716

1817
pub(crate) fn subsystem() -> impl PinInit<kernel::configfs::Subsystem<Config>, Error> {
1918
let item_type = configfs_attrs! {

drivers/block/rnull/rnull.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ use kernel::{
1414
Operations, TagSet,
1515
},
1616
},
17-
error::Result,
18-
pr_info,
1917
prelude::*,
2018
sync::{aref::ARef, Arc},
2119
};
22-
use pin_init::PinInit;
2320

2421
module! {
2522
type: NullBlkModule,

0 commit comments

Comments
 (0)