Skip to content
Commit eeaa3d44 authored by Mike Marshall's avatar Mike Marshall
Browse files

Orangefs: address problems found by static checker



  Don't check for negative rc from boolean.

  Don't pointlessly initialize variables, it short-circuits
  gcc's uninitialized variable warnings. And max_new_nr_segs
  can never be zero, so don't check for it.

  Preserve original kstrdup pointer for freeing later.

  Don't check for negative value in unsigned variable.

Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent 84d02150
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment