mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
soundwire: bandwidth allocation: Remove pointless variable
The block_offset variable in _sdw_compute_port_params adds nothing either functionally or in terms of code clarity, remove it. Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20230602101140.2040141-2-ckeepax@opensource.cirrus.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
committed by
Vinod Koul
parent
c05bfbd0c6
commit
6eedc22724
@@ -139,20 +139,16 @@ static void _sdw_compute_port_params(struct sdw_bus *bus,
|
|||||||
{
|
{
|
||||||
struct sdw_master_runtime *m_rt;
|
struct sdw_master_runtime *m_rt;
|
||||||
int hstop = bus->params.col - 1;
|
int hstop = bus->params.col - 1;
|
||||||
int block_offset, port_bo, i;
|
int port_bo, i;
|
||||||
|
|
||||||
/* Run loop for all groups to compute transport parameters */
|
/* Run loop for all groups to compute transport parameters */
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
port_bo = 1;
|
port_bo = 1;
|
||||||
block_offset = 1;
|
|
||||||
|
|
||||||
list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) {
|
list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) {
|
||||||
sdw_compute_master_ports(m_rt, ¶ms[i],
|
sdw_compute_master_ports(m_rt, ¶ms[i], port_bo, hstop);
|
||||||
port_bo, hstop);
|
|
||||||
|
|
||||||
block_offset += m_rt->ch_count *
|
port_bo += m_rt->ch_count * m_rt->stream->params.bps;
|
||||||
m_rt->stream->params.bps;
|
|
||||||
port_bo = block_offset;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hstop = hstop - params[i].hwidth;
|
hstop = hstop - params[i].hwidth;
|
||||||
|
|||||||
Reference in New Issue
Block a user