ALSA: Convert strlcpy to strscpy when return value is unused
[sfrench/cifs-2.6.git] / sound / ppc / keywest.c
index 9554a0c506afbc60239453e8cfd5ea719e6ac695..a6c1905039de838b9a79c05c4965eaa4bfa8de3d 100644 (file)
@@ -49,7 +49,7 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter)
                return -EINVAL; /* ignored */
 
        memset(&info, 0, sizeof(struct i2c_board_info));
-       strlcpy(info.type, "keywest", I2C_NAME_SIZE);
+       strscpy(info.type, "keywest", I2C_NAME_SIZE);
        info.addr = keywest_ctx->addr;
        client = i2c_new_client_device(adapter, &info);
        if (IS_ERR(client))