Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

smb/client: remove unused smb3_parse_opt()

Commit abdb1742a3123 ("cifs: get rid of mount options string parsing")
removed the last caller.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>

authored by

David Disseldorp and committed by
Steve French
0cbc3002 254f4963

-32
-1
fs/smb/client/cifsproto.h
··· 89 89 struct mid_q_entry *mid); 90 90 char *smb3_fs_context_fullpath(const struct smb3_fs_context *ctx, char dirsep); 91 91 int smb3_parse_devname(const char *devname, struct smb3_fs_context *ctx); 92 - int smb3_parse_opt(const char *options, const char *key, char **val); 93 92 int cifs_ipaddr_cmp(struct sockaddr *srcaddr, struct sockaddr *rhs); 94 93 bool cifs_match_ipaddr(struct sockaddr *srcaddr, struct sockaddr *rhs); 95 94 int cifs_discard_remaining_data(struct TCP_Server_Info *server);
-31
fs/smb/client/fs_context.c
··· 536 536 return 0; 537 537 } 538 538 539 - int smb3_parse_opt(const char *options, const char *key, char **val) 540 - { 541 - int rc = -ENOENT; 542 - char *opts, *orig, *p; 543 - 544 - orig = opts = kstrdup(options, GFP_KERNEL); 545 - if (!opts) 546 - return -ENOMEM; 547 - 548 - while ((p = strsep(&opts, ","))) { 549 - char *nval; 550 - 551 - if (!*p) 552 - continue; 553 - if (strncasecmp(p, key, strlen(key))) 554 - continue; 555 - nval = strchr(p, '='); 556 - if (nval) { 557 - if (nval == p) 558 - continue; 559 - *nval++ = 0; 560 - *val = kstrdup(nval, GFP_KERNEL); 561 - rc = !*val ? -ENOMEM : 0; 562 - goto out; 563 - } 564 - } 565 - out: 566 - kfree(orig); 567 - return rc; 568 - } 569 - 570 539 /* 571 540 * Remove duplicate path delimiters. Windows is supposed to do that 572 541 * but there are some bugs that prevent rename from working if there are