mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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:
parent
1950267e6e
commit
a8ca889ed9
4 changed files with 7 additions and 10 deletions
|
@ -308,7 +308,7 @@ static int mtdblock_open(struct mtd_blktrans_dev *mbd)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int mtdblock_release(struct mtd_blktrans_dev *mbd)
|
||||
static void mtdblock_release(struct mtd_blktrans_dev *mbd)
|
||||
{
|
||||
struct mtdblk_dev *mtdblk = container_of(mbd, struct mtdblk_dev, mbd);
|
||||
|
||||
|
@ -333,8 +333,6 @@ static int mtdblock_release(struct mtd_blktrans_dev *mbd)
|
|||
mutex_unlock(&mtdblks_lock);
|
||||
|
||||
pr_debug("ok\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int mtdblock_flush(struct mtd_blktrans_dev *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue