Given that strlcpy() is deprecated use strscpy() instead.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
                goto out;
        }
 
-       len = strlcpy(ldfpl->fident, ftp->fname, sizeof(ldfpl->fident));
-       if (len >= HMCDRV_FTP_FIDENT_MAX) {
+       len = strscpy(ldfpl->fident, ftp->fname, sizeof(ldfpl->fident));
+       if (len < 0) {
                len = -EINVAL;
                goto out_free;
        }
 
        struct completion completion;
        struct sclp_diag_sccb *sccb;
        struct sclp_req *req;
-       size_t len;
+       ssize_t len;
        int rc;
 
        req = kzalloc(sizeof(*req), GFP_KERNEL);
        sccb->evbuf.mdd.ftp.length = ftp->len;
        sccb->evbuf.mdd.ftp.bufaddr = virt_to_phys(ftp->buf);
 
-       len = strlcpy(sccb->evbuf.mdd.ftp.fident, ftp->fname,
+       len = strscpy(sccb->evbuf.mdd.ftp.fident, ftp->fname,
                      HMCDRV_FTP_FIDENT_MAX);
-       if (len >= HMCDRV_FTP_FIDENT_MAX) {
+       if (len < 0) {
                rc = -EINVAL;
                goto out_free;
        }