Commit 41bf8a12 authored by Ge Hu's avatar Ge Hu Committed by 程佳奇
Browse files

modify for ICSL.

driver inclusion
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/IAT9PR


CVE: NA

----------------------------------------------------------------------

1.Delete redundant spaces from the if_register_ub6 function.
2.The lldpd_get_tlv_name function is returned by querying an array.
3.The static modification is added to ub_dguid.
4.The ip_notify_sysfs_create function logs are recorded using
 the netdev_err interface.

Signed-off-by: default avatarGe Hu <huge4@huawei.com>
parent d831c8e9
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
static struct workqueue_struct *ip_notify_wq;
static int initialized;

const u8 ub_dguid[UBL_ALEN] = {0xFF, 0xFF, 0xFF, 0xFF,
static const u8 ub_dguid[UBL_ALEN] = {0xFF, 0xFF, 0xFF, 0xFF,
				      0xFF, 0xFF, 0xFF, 0xFF,
				      0xFF, 0xFF, 0xFF, 0xFF,
				      0xFF, 0xFF, 0x01, 0x02};
@@ -322,14 +322,14 @@ int ip_notify_sysfs_create(struct ub_nm_device *nm_dev)
	ip_notify_ctx->ip_notify_root = kobject_create_and_add("ip_notify",
							       kobj);
	if (!ip_notify_ctx->ip_notify_root) {
		pr_err("Failed to create ip_notify dir.\n");
		netdev_err(nm_dev->ndev, "Failed to create ip_notify dir.\n");
		return -ENOMEM;
	}

	ret = ip_notify_init_attrs(ip_notify_ctx->ip_notify_root,
				   &ip_notify_ctx->attrs);
	if (ret) {
		pr_err("Failed to init ip notify attrs, ret = %d\n", ret);
		netdev_err(nm_dev->ndev, "Failed to init ip notify attrs, ret = %d\n", ret);
		goto err_ip_notify_init_attrs;
	}