mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-06 12:58:06 +02:00
Don't need a NULL check prior to calling kfree.
This commit is contained in:
parent
e183a091ff
commit
fb3c82f1d8
1 changed files with 1 additions and 3 deletions
|
|
@ -201,9 +201,7 @@ static void intel_crt_destroy(struct drm_output *output)
|
|||
struct intel_output *intel_output = output->driver_private;
|
||||
|
||||
intel_i2c_destroy(intel_output->ddc_bus);
|
||||
|
||||
if (output->driver_private)
|
||||
kfree(output->driver_private);
|
||||
kfree(output->driver_private);
|
||||
}
|
||||
|
||||
static int intel_crt_get_modes(struct drm_output *output)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue