Skip to content

Commit 16ca810

Browse files
Viresh KumarVinod Koul
authored andcommitted
dmaengine/amba-pl08x: No need to check "ch->signal < 0"
We have just executed following in pl08x_get_phy_channel(): ch->signal = -1; We don't have to compare "ch->signal < 0", as this will always be true. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1 parent 48a59ef commit 16ca810

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/dma/amba-pl08x.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ static int prep_phy_channel(struct pl08x_dma_chan *plchan,
916916
* need, but for slaves the physical signals may be muxed!
917917
* Can the platform allow us to use this channel?
918918
*/
919-
if (plchan->slave && ch->signal < 0 && pl08x->pd->get_signal) {
919+
if (plchan->slave && pl08x->pd->get_signal) {
920920
ret = pl08x->pd->get_signal(plchan);
921921
if (ret < 0) {
922922
dev_dbg(&pl08x->adev->dev,

0 commit comments

Comments
 (0)