@@ -1884,7 +1884,6 @@ static void fdls_fdmi_register_hba(struct fnic_iport_s *iport)
1884
1884
if (fnic -> subsys_desc_len >= FNIC_FDMI_MODEL_LEN )
1885
1885
fnic -> subsys_desc_len = FNIC_FDMI_MODEL_LEN - 1 ;
1886
1886
strscpy_pad (data , fnic -> subsys_desc , FNIC_FDMI_MODEL_LEN );
1887
- data [FNIC_FDMI_MODEL_LEN - 1 ] = 0 ;
1888
1887
fnic_fdmi_attr_set (fdmi_attr , FNIC_FDMI_TYPE_MODEL , FNIC_FDMI_MODEL_LEN ,
1889
1888
data , & attr_off_bytes );
1890
1889
@@ -2047,7 +2046,6 @@ static void fdls_fdmi_register_pa(struct fnic_iport_s *iport)
2047
2046
snprintf (tmp_data , FNIC_FDMI_OS_NAME_LEN - 1 , "host%d" ,
2048
2047
fnic -> host -> host_no );
2049
2048
strscpy_pad (data , tmp_data , FNIC_FDMI_OS_NAME_LEN );
2050
- data [FNIC_FDMI_OS_NAME_LEN - 1 ] = 0 ;
2051
2049
fnic_fdmi_attr_set (fdmi_attr , FNIC_FDMI_TYPE_OS_NAME ,
2052
2050
FNIC_FDMI_OS_NAME_LEN , data , & attr_off_bytes );
2053
2051
@@ -2057,7 +2055,6 @@ static void fdls_fdmi_register_pa(struct fnic_iport_s *iport)
2057
2055
sprintf (fc_host_system_hostname (fnic -> host ), "%s" , utsname ()-> nodename );
2058
2056
strscpy_pad (data , fc_host_system_hostname (fnic -> host ),
2059
2057
FNIC_FDMI_HN_LEN );
2060
- data [FNIC_FDMI_HN_LEN - 1 ] = 0 ;
2061
2058
fnic_fdmi_attr_set (fdmi_attr , FNIC_FDMI_TYPE_HOST_NAME ,
2062
2059
FNIC_FDMI_HN_LEN , data , & attr_off_bytes );
2063
2060
0 commit comments