Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: ti: k3-udma: Do not initialize ret in tisci channel config functions

The ret does not need to be initialized to 0 in the tisci channel config
functions.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20210113114923.9231-4-peter.ujfalusi@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Peter Ujfalusi and committed by
Vinod Koul
747ee57b 046d679b

+7 -7
+7 -7
drivers/dma/ti/k3-udma.c
··· 1830 1830 struct udma_tchan *tchan = uc->tchan; 1831 1831 struct udma_rchan *rchan = uc->rchan; 1832 1832 u8 burst_size = 0; 1833 - int ret = 0; 1833 + int ret; 1834 1834 u8 tpl; 1835 1835 1836 1836 /* Non synchronized - mem to mem type of transfer */ ··· 1889 1889 struct ti_sci_msg_rm_udmap_tx_ch_cfg req_tx = { 0 }; 1890 1890 struct udma_bchan *bchan = uc->bchan; 1891 1891 u8 burst_size = 0; 1892 - int ret = 0; 1892 + int ret; 1893 1893 u8 tpl; 1894 1894 1895 1895 if (ud->match_data->flags & UDMA_FLAG_BURST_SIZE) { ··· 1923 1923 int tc_ring = k3_ringacc_get_ring_id(tchan->tc_ring); 1924 1924 struct ti_sci_msg_rm_udmap_tx_ch_cfg req_tx = { 0 }; 1925 1925 u32 mode, fetch_size; 1926 - int ret = 0; 1926 + int ret; 1927 1927 1928 1928 if (uc->config.pkt_mode) { 1929 1929 mode = TI_SCI_RM_UDMAP_CHAN_TYPE_PKT_PBRR; ··· 1964 1964 const struct ti_sci_rm_udmap_ops *tisci_ops = tisci_rm->tisci_udmap_ops; 1965 1965 struct udma_tchan *tchan = uc->tchan; 1966 1966 struct ti_sci_msg_rm_udmap_tx_ch_cfg req_tx = { 0 }; 1967 - int ret = 0; 1967 + int ret; 1968 1968 1969 1969 req_tx.valid_params = TISCI_BCDMA_TCHAN_VALID_PARAMS; 1970 1970 req_tx.nav_id = tisci_rm->tisci_dev_id; ··· 1997 1997 struct ti_sci_msg_rm_udmap_rx_ch_cfg req_rx = { 0 }; 1998 1998 struct ti_sci_msg_rm_udmap_flow_cfg flow_req = { 0 }; 1999 1999 u32 mode, fetch_size; 2000 - int ret = 0; 2000 + int ret; 2001 2001 2002 2002 if (uc->config.pkt_mode) { 2003 2003 mode = TI_SCI_RM_UDMAP_CHAN_TYPE_PKT_PBRR; ··· 2074 2074 const struct ti_sci_rm_udmap_ops *tisci_ops = tisci_rm->tisci_udmap_ops; 2075 2075 struct udma_rchan *rchan = uc->rchan; 2076 2076 struct ti_sci_msg_rm_udmap_rx_ch_cfg req_rx = { 0 }; 2077 - int ret = 0; 2077 + int ret; 2078 2078 2079 2079 req_rx.valid_params = TISCI_BCDMA_RCHAN_VALID_PARAMS; 2080 2080 req_rx.nav_id = tisci_rm->tisci_dev_id; ··· 2094 2094 const struct ti_sci_rm_udmap_ops *tisci_ops = tisci_rm->tisci_udmap_ops; 2095 2095 struct ti_sci_msg_rm_udmap_rx_ch_cfg req_rx = { 0 }; 2096 2096 struct ti_sci_msg_rm_udmap_flow_cfg flow_req = { 0 }; 2097 - int ret = 0; 2097 + int ret; 2098 2098 2099 2099 req_rx.valid_params = TISCI_BCDMA_RCHAN_VALID_PARAMS; 2100 2100 req_rx.nav_id = tisci_rm->tisci_dev_id;