mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
dm: drop redundant nonseekable_open() return check
nonseekable_open() never fails, so the error check is unnecessary. Remove the dead error handling path. Signed-off-by: Bui Duc Phuc <phucduc.bui@gmail.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
parent
c7391ebe33
commit
0729a9b4ee
|
|
@ -2269,12 +2269,9 @@ static long dm_compat_ctl_ioctl(struct file *file, uint command, ulong u)
|
|||
|
||||
static int dm_open(struct inode *inode, struct file *filp)
|
||||
{
|
||||
int r;
|
||||
struct dm_file *priv;
|
||||
|
||||
r = nonseekable_open(inode, filp);
|
||||
if (unlikely(r))
|
||||
return r;
|
||||
nonseekable_open(inode, filp);
|
||||
|
||||
priv = filp->private_data = kmalloc_obj(struct dm_file);
|
||||
if (!priv)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user