Merge "msm: mdss: fix check for igc read"

This commit is contained in:
Linux Build Service Account 2017-01-28 00:46:31 -08:00 committed by Gerrit - the friendly Code Review server
commit c8ec64b1cd

View file

@ -1,4 +1,4 @@
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2017, 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
@ -3980,8 +3980,7 @@ int mdss_mdp_igc_lut_config(struct msm_fb_data_type *mfd,
disp_num = config->block - MDP_LOGICAL_BLOCK_DISP_0;
if (config->ops & MDP_PP_OPS_READ) {
if (config->len != IGC_LUT_ENTRIES &&
!pp_ops[IGC].pp_get_config) {
if (config->len != IGC_LUT_ENTRIES) {
pr_err("invalid len for IGC table for read %d\n",
config->len);
return -EINVAL;