Project

General

Profile

Actions

Bug #9608

closed

qede: error: 'free_buffer_count' may be used uninitialized in this function

Added by Toomas Soome almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2018-06-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

issue found by gcc 7 build:

    ../../common/io/qede/qede_fp.c:524:24: error: 'free_buffer_count' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      if (free_buffer_count <
          ~~~~~~~~~~~~~~~~~~^
          rx_ring->rx_low_buffer_threshold) {
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

set it to 0.

Actions

Also available in: Atom PDF