lkml.org 
[lkml]   [2020]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH net-next 3/4] net: macb: do not initialize queue variable
    Date
    Do not initialize queue variable. It is already initialized in for loops.

    Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
    ---
    drivers/net/ethernet/cadence/macb_main.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
    index a84fb0ec53f0..3603ab707e0f 100644
    --- a/drivers/net/ethernet/cadence/macb_main.c
    +++ b/drivers/net/ethernet/cadence/macb_main.c
    @@ -1467,7 +1467,7 @@ static void macb_hresp_error_task(unsigned long data)
    {
    struct macb *bp = (struct macb *)data;
    struct net_device *dev = bp->dev;
    - struct macb_queue *queue = bp->queues;
    + struct macb_queue *queue;
    unsigned int q;
    u32 ctrl;

    --
    2.7.4
    \
     
     \ /
      Last update: 2020-07-01 15:10    [W:2.728 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site