drm: remove unnecessary NULL checks, and fix some indents..
parent
2b7a9afa09
commit
9d8ba2d0d4
|
@ -585,9 +585,9 @@ int drmOpen(const char *name, const char *busid)
|
||||||
void drmFreeVersion(drmVersionPtr v)
|
void drmFreeVersion(drmVersionPtr v)
|
||||||
{
|
{
|
||||||
if (!v) return;
|
if (!v) return;
|
||||||
if (v->name) drmFree(v->name);
|
drmFree(v->name);
|
||||||
if (v->date) drmFree(v->date);
|
drmFree(v->date);
|
||||||
if (v->desc) drmFree(v->desc);
|
drmFree(v->desc);
|
||||||
drmFree(v);
|
drmFree(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -604,9 +604,9 @@ void drmFreeVersion(drmVersionPtr v)
|
||||||
static void drmFreeKernelVersion(drm_version_t *v)
|
static void drmFreeKernelVersion(drm_version_t *v)
|
||||||
{
|
{
|
||||||
if (!v) return;
|
if (!v) return;
|
||||||
if (v->name) drmFree(v->name);
|
drmFree(v->name);
|
||||||
if (v->date) drmFree(v->date);
|
drmFree(v->date);
|
||||||
if (v->desc) drmFree(v->desc);
|
drmFree(v->desc);
|
||||||
drmFree(v);
|
drmFree(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue