Project

General

Profile

Actions

Bug #10713

closed

fp: NULL pointer errors

Added by Toomas Soome about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-04-10
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

NULL pointer errors:

    ../../common/io/fibre-channel/impl/fp.c: In function 'fp_unsol_cb':
    ../../common/io/fibre-channel/impl/fp.c:10905:56: error: pointer/integer type mismatch in conditional expression [-Werror]
      cb_arg = (rscn_count == FC_INVALID_RSCN_COUNT) ? NULL : rscn_count;
                                                            ^
    ../../common/io/fibre-channel/impl/fp.c:10905:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      cb_arg = (rscn_count == FC_INVALID_RSCN_COUNT) ? NULL : rscn_count;
             ^
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF