Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320396
b: refs/heads/master
c: bbf43dc
h: refs/heads/master
v: v3
  • Loading branch information
Eldad Zack authored and J. Bruce Fields committed Jul 11, 2012
1 parent a905562 commit 93ae0a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: d9c2ede63c74048dfddbb129c59ac01176b0ab71
refs/heads/master: bbf43dc888833ac0539e437dbaeb28bfd4fbab9f
6 changes: 1 addition & 5 deletions trunk/include/linux/sunrpc/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,20 +217,16 @@ extern int qword_get(char **bpp, char *dest, int bufsize);
static inline int get_int(char **bpp, int *anint)
{
char buf[50];
char *ep;
int rv;
int len = qword_get(bpp, buf, sizeof(buf));

if (len < 0)
return -EINVAL;
if (len == 0)
return -ENOENT;

rv = simple_strtol(buf, &ep, 0);
if (*ep)
if (kstrtoint(buf, 0, anint))
return -EINVAL;

*anint = rv;
return 0;
}

Expand Down

0 comments on commit 93ae0a1

Please sign in to comment.