[ovs-git] [openvswitch/ovs] 13d05b: sflow functions: fix unused parameter warnings for...

Alin Gabriel Serdean noreply at github.com
Tue Oct 12 15:07:40 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 13d05b8e5b10a7ef3dc3a17059c5c9a7acc68bdc
      https://github.com/openvswitch/ovs/commit/13d05b8e5b10a7ef3dc3a17059c5c9a7acc68bdc
  Author: Sergey Madaminov <sergey.madaminov at gmail.com>
  Date:   2021-10-12 (Tue, 12 Oct 2021)

  Changed paths:
    M lib/sflow_agent.c
    M lib/sflow_api.h
    M lib/sflow_poller.c
    M lib/sflow_receiver.c
    M lib/sflow_sampler.c

  Log Message:
  -----------
  sflow functions: fix unused parameter warnings for sflow functions

Several 'sflow' functions (sfl_poller_tick, sfl_sampler_tick, and
sfl_receiver_tick) have unused parameter 'now' in their signatures. This patch
removes that parameter from their signatures to fix compilation warnings.

Also, according to the 'utilities/checkpatch.py', there should be an indent
between 'for' keyword an opening left paren. Additionally, the line containing
'for' keyword had to end with an opening curly brace. Therefore, I did a bit of
formatting besides removing the unused parameter in the modified code.

Signed-off-by: Sergey Madaminov <sergey.madaminov at gmail.com>
Reviewed-by: Michael Santana <msantana at redhat.com>
Signed-off-by: Alin-Gabriel Serdean <aserdean at ovn.org>




More information about the git mailing list