commit | 13eb5f596bc8ece3d1805b388aa53917e6158d7b | [log] [tgz] |
---|---|---|
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | Fri Dec 04 22:08:22 2015 +1100 |
committer | Marek Olšák <marek.olsak@amd.com> | Sun Dec 06 17:10:23 2015 +0100 |
tree | da4ab5c8fd897b317d7f66004fdd22cd02ebe84c | |
parent | 150c289f6067cb1ba4572f9124948a94ef94c839 [diff] |
gallium/drivers: Sanitize NULL checks into canonical form Use NULL tests of the form `if (ptr)' or `if (!ptr)'. They do not depend on the definition of the symbol NULL. Further, they provide the opportunity for the accidental assignment, are clear and succinct. Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>