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:
Дмитрий Левин 2015-07-14 23:27:21 +00:00
parent b10ae62d31
commit 7a9ec1273c

12
xattr.c
View File

@ -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);
}