struct sdw_stream_runtime *stream)
 {
        struct sdw_master_runtime *m_rt;
-       bool alloc_master_rt = true;
+       bool alloc_master_rt = false;
        int ret;
 
        mutex_lock(&bus->bus_lock);
         * it first), if so skip allocation and go to configuration
         */
        m_rt = sdw_master_rt_find(bus, stream);
-       if (m_rt) {
-               alloc_master_rt = false;
+       if (m_rt)
                goto skip_alloc_master_rt;
-       }
 
        m_rt = sdw_master_rt_alloc(bus, stream);
        if (!m_rt) {
                ret = -ENOMEM;
                goto unlock;
        }
+
+       alloc_master_rt = true;
 skip_alloc_master_rt:
 
        if (sdw_master_port_allocated(m_rt))
 {
        struct sdw_slave_runtime *s_rt;
        struct sdw_master_runtime *m_rt;
-       bool alloc_master_rt = true;
-       bool alloc_slave_rt = true;
+       bool alloc_master_rt = false;
+       bool alloc_slave_rt = false;
 
        int ret;
 
         * and go to configuration
         */
        m_rt = sdw_master_rt_find(slave->bus, stream);
-       if (m_rt) {
-               alloc_master_rt = false;
+       if (m_rt)
                goto skip_alloc_master_rt;
-       }
 
        /*
         * If this API is invoked by Slave first then m_rt is not valid.
                goto unlock;
        }
 
+       alloc_master_rt = true;
+
 skip_alloc_master_rt:
        s_rt = sdw_slave_rt_find(slave, stream);
-       if (s_rt) {
-               alloc_slave_rt = false;
+       if (s_rt)
                goto skip_alloc_slave_rt;
-       }
 
        s_rt = sdw_slave_rt_alloc(slave, m_rt);
        if (!s_rt) {
                dev_err(&slave->dev, "Slave runtime alloc failed for stream:%s\n", stream->name);
-               alloc_slave_rt = false;
                ret = -ENOMEM;
                goto alloc_error;
        }
 
+       alloc_slave_rt = true;
+
 skip_alloc_slave_rt:
        if (sdw_slave_port_allocated(s_rt))
                goto skip_port_alloc;