Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258620
b: refs/heads/master
c: 44194e3
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Jens Axboe committed Jun 20, 2011
1 parent 8bcf5b3 commit e31cd9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 80ceb057135ad77f513277f3bcd04b885501877a
refs/heads/master: 44194e3e88fcfe77a2a6e2333847d4f27816259a
4 changes: 2 additions & 2 deletions trunk/block/bsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ bsg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
ret = __bsg_read(buf, count, bd, NULL, &bytes_read);
*ppos = bytes_read;

if (!bytes_read || (bytes_read && err_block_err(ret)))
if (!bytes_read || err_block_err(ret))
bytes_read = ret;

return bytes_read;
Expand Down Expand Up @@ -686,7 +686,7 @@ bsg_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
/*
* return bytes written on non-fatal errors
*/
if (!bytes_written || (bytes_written && err_block_err(ret)))
if (!bytes_written || err_block_err(ret))
bytes_written = ret;

dprintk("%s: returning %Zd\n", bd->name, bytes_written);
Expand Down

0 comments on commit e31cd9a

Please sign in to comment.