Skip to content

Commit

Permalink
staging: apf: Remove unused variable
Browse files Browse the repository at this point in the history
There is no reason to use status variable. Return value directly.

Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
Michal Simek authored and chkohn committed Dec 16, 2017
1 parent 827a972 commit d0dc9ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/apf/xlnk.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,12 +498,10 @@ static u64 dma_mask = 0xFFFFFFFFUL;
*/
static int xlnk_open(struct inode *ip, struct file *filp)
{
int status = 0;

if ((filp->f_flags & O_ACCMODE) == O_WRONLY)
xlnk_dev_size = 0;

return status;
return 0;
}

static ssize_t xlnk_read(struct file *filp, char __user *buf,
Expand Down

0 comments on commit d0dc9ad

Please sign in to comment.