print_xattr_list: remove redundant address check
* xattr.c (print_xattr_list): Do not check for NULL the address passed to printstr.
This commit is contained in:
parent
b10ae62d31
commit
7a9ec1273c
12
xattr.c
12
xattr.c
@ -109,14 +109,10 @@ print_xattr_list(struct tcb *tcp, unsigned long addr, unsigned long size)
|
||||
if (syserror(tcp)) {
|
||||
tprintf("%#lx", addr);
|
||||
} else {
|
||||
if (!addr) {
|
||||
tprints("NULL");
|
||||
} else {
|
||||
unsigned long len =
|
||||
(size < (unsigned long) tcp->u_rval) ?
|
||||
size : (unsigned long) tcp->u_rval;
|
||||
printstr(tcp, addr, len);
|
||||
}
|
||||
unsigned long len =
|
||||
(size < (unsigned long) tcp->u_rval) ?
|
||||
size : (unsigned long) tcp->u_rval;
|
||||
printstr(tcp, addr, len);
|
||||
}
|
||||
tprintf(", %lu", size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user