Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d740ab42 authored by Shiraz Hashim's avatar Shiraz Hashim Committed by Gerrit - the friendly Code Review server
Browse files

mdp3: Fix build error reported using LLVM



NULL check against compile time arrays doesn't add any
value, remove them.

Change-Id: I83046296d01d68d3e46ffcbe8592eacf36fa807e
Signed-off-by: default avatarShiraz Hashim <shashim@codeaurora.org>
parent d026bbd5
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
/* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2019, 2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2179,9 +2179,7 @@ static int mdp3_csc_config(struct mdp3_session_data *session,
	struct mdp3_dma_ccs ccs;
	int ret = -EINVAL;

	if (!data->csc_data.csc_mv || !data->csc_data.csc_pre_bv ||
		!data->csc_data.csc_post_bv || !data->csc_data.csc_pre_lv ||
			!data->csc_data.csc_post_lv) {
	if (!data) {
		pr_err("%s : Invalid csc vectors", __func__);
		return -EINVAL;
	}