All of lore.kernel.org
 help / color / mirror / Atom feed
* smatch stuff: fnic:  VNIC_FNIC_EDTOV_MAX is too high.
@ 2010-06-14 12:52 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2010-06-14 12:52 UTC (permalink / raw)
  To: Abhijeet Joglekar; +Cc: Joe Eykholt, linux-scsi

This is a smatch thing.  Neither VNIC_FNIC_EDTOV_MAX nor
VNIC_FNIC_RATOV_MAX do anything.  They are both set to 255000 but ed_tov
and ra_tov are u16 so they can't go higher than 65535.

drivers/scsi/fnic/fnic_res.c
    95          c->ed_tov =
    96                  min_t(u32, VNIC_FNIC_EDTOV_MAX,
    97                        max_t(u32, VNIC_FNIC_EDTOV_MIN,
    98                              c->ed_tov));
    99
   100          c->ra_tov =
   101                  min_t(u32, VNIC_FNIC_RATOV_MAX,
   102                        max_t(u32, VNIC_FNIC_RATOV_MIN,
   103                              c->ra_tov));

regards,
dan carpenter


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-14 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-14 12:52 smatch stuff: fnic: VNIC_FNIC_EDTOV_MAX is too high Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.