treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / video / display_timing.c
blobdaca8227bfc6f65729cafc7e9bf0c05b2336031c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * generic display timing functions
5 * Copyright (c) 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>, Pengutronix
6 */
8 #include <linux/export.h>
9 #include <linux/slab.h>
10 #include <video/display_timing.h>
12 void display_timings_release(struct display_timings *disp)
14 if (disp->timings) {
15 unsigned int i;
17 for (i = 0; i < disp->num_timings; i++)
18 kfree(disp->timings[i]);
19 kfree(disp->timings);
21 kfree(disp);
23 EXPORT_SYMBOL_GPL(display_timings_release);