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

Commit 1dc4a359 authored by Yuanfang Zhang's avatar Yuanfang Zhang
Browse files

soc: qcom: fix invalid length can be configured to DCC



Invalid length can't be configured to DCC. This change
remove the design of setting length to 1 when length is 0.

Change-Id: Idcc1cfa5c38be31cad60e25182aa789d5f8bb163
Signed-off-by: default avatarYuanfang Zhang <zhangyuanfang@codeaurora.org>
parent cae1ad55
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2019, 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
@@ -1063,8 +1063,6 @@ static ssize_t dcc_store_config(struct device *dev,
		apb_bus = 1;
	}

	if (len == 0)
		len = 1;

	if (base == 0) {
		dev_err(drvdata->dev, "DCC: Invalid  Address\n");