diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-12-07 19:06:05 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-12-10 11:51:03 -0800 |
commit | 33d6e6743d86324c2078f156991b16ac4f2593fc (patch) | |
tree | d8b36a7878b4c9e54aadf59a4961d72d75d38022 /hw/xfree86/common/xf86Config.c | |
parent | 372a6f10dc2d74d2d179e8b92449e9b8636a99ef (diff) |
xf86RegisterRootWindowProperty is confused about xnfcalloc
It will never return NULL, so don't try to handle a NULL condition,
since that just confuses programmers and static analyzers.
It uses calloc, so all the allocated memory is cleared, so there's
no point looping over the memory to manually initialize it NULL.
And just because it's annoying, it doesn't need to be the only
place in this file to do if (NULL==...) instead of if (... == NULL).
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'hw/xfree86/common/xf86Config.c')
0 files changed, 0 insertions, 0 deletions