瀏覽代碼

swconfig: swlib_map_settings(): change return type to void

The return value of the function isn't used anywhere.
Fixes missing return value, CID 1329717.

Found-by: Coverity
Signed-off-by: Alexander Couzens <[email protected]>
Alexander Couzens 7 年之前
父節點
當前提交
b06c447c5f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package/network/config/swconfig/src/uci.c

+ 1 - 1
package/network/config/swconfig/src/uci.c

@@ -59,7 +59,7 @@ static bool swlib_match_name(struct switch_dev *dev, const char *name)
 		strcmp(name, dev->alias) == 0);
 }
 
-static int
+static void
 swlib_map_settings(struct switch_dev *dev, int type, int port_vlan, struct uci_section *s)
 {
 	struct swlib_setting *setting;