Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 4938 Build 5001: arc lint + arc unit
Event Timeline
cddl/lib/libdtrace/psinfo.d | ||
---|---|---|
63 | You could squash this a bit: (T->p_args == 0 || T->p_args->ar_args == 0) ? "" : ... The indentation looks a bit off too, but that might be phabricator. |
Comment Actions
I'm believe ar_args can't be NULL if p_args is non-NULL FWIW. Other places assume that ar_args is valid if p_args is not NULL. Given that, I think you can remove the ar_args check. Actually, ar_args isn't a pointer, it's a variable length array at the end of the structure, so there's never a pointer to check. You should remove the 'ar_args == 0' test.