mtd_blktrans_ops->release() should return void
Both existing instances always return 0 and even if they didn't, the value would be lost on the way out. Just don't bother... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -74,7 +74,7 @@ struct mtd_blktrans_ops {
|
||||
|
||||
/* Called with mtd_table_mutex held; no race with add/remove */
|
||||
int (*open)(struct mtd_blktrans_dev *dev);
|
||||
int (*release)(struct mtd_blktrans_dev *dev);
|
||||
void (*release)(struct mtd_blktrans_dev *dev);
|
||||
|
||||
/* Called on {de,}registration and on subsequent addition/removal
|
||||
of devices, with mtd_table_mutex held. */
|
||||
|
Reference in New Issue
Block a user