net: hns3: change hclge_parse_speed() param type
The type of parameters in hclge_parse_speed() should be unsigned type, so change them. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c5aaf17618
commit
6e7f109ee9
|
@ -928,7 +928,7 @@ static int hclge_query_pf_resource(struct hclge_dev *hdev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hclge_parse_speed(int speed_cmd, int *speed)
|
static int hclge_parse_speed(u8 speed_cmd, u32 *speed)
|
||||||
{
|
{
|
||||||
switch (speed_cmd) {
|
switch (speed_cmd) {
|
||||||
case 6:
|
case 6:
|
||||||
|
|
Loading…
Reference in New Issue