VirtualBox

Ignore:
Timestamp:
Mar 24, 2019 2:50:02 PM (6 years ago)
Author:
vboxsync
Message:

linux/vboxsf: More small cleanups. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/dirops.c

    r77863 r77864  
    10961096static int vbsf_unlink_worker(struct inode *parent, struct dentry *dentry, int fDirectory)
    10971097{
    1098     int rc, err;
    10991098    struct vbsf_super_info *sf_g = VBSF_GET_SUPER_INFO(parent->i_sb);
    11001099    struct vbsf_inode_info *sf_parent_i = VBSF_GET_INODE_INFO(parent);
    11011100    SHFLSTRING *path;
     1101    int rc;
    11021102
    11031103    TRACE();
    1104     BUG_ON(!sf_g);
    1105 
    1106     err = vbsf_path_from_dentry(sf_g, sf_parent_i, dentry, &path, __func__);
    1107     if (!err) {
     1104
     1105    rc = vbsf_path_from_dentry(sf_g, sf_parent_i, dentry, &path, __func__);
     1106    if (!rc) {
    11081107        VBOXSFREMOVEREQ *pReq = (VBOXSFREMOVEREQ *)VbglR0PhysHeapAlloc(RT_UOFFSETOF(VBOXSFREMOVEREQ, StrPath.String)
    11091108                                                                       + path->u16Size);
     
    11231122            if (RT_SUCCESS(rc)) {
    11241123                sf_parent_i->force_restat = true; /* directory access/change time changed */
    1125                 err = 0;
     1124                rc = 0;
    11261125            } else if (rc == VERR_FILE_NOT_FOUND || rc == VERR_PATH_NOT_FOUND) {
    11271126                LogFunc(("(%d): VbglR0SfRemove(%s) failed rc=%Rrc; calling d_drop on %p\n",
    11281127                         fDirectory, path->String.ach, rc, dentry));
    11291128                d_drop(dentry);
     1129                rc = 0; /** @todo ??? */
    11301130            } else {
    11311131                LogFunc(("(%d): VbglR0SfRemove(%s) failed rc=%Rrc\n", fDirectory, path->String.ach, rc));
    1132                 err = -RTErrConvertToErrno(rc);
     1132                rc = -RTErrConvertToErrno(rc);
    11331133            }
    11341134            VbglR0PhysHeapFree(pReq);
    11351135        } else
    1136             err = -ENOMEM;
     1136            rc = -ENOMEM;
    11371137        kfree(path);
    11381138    }
    1139     return err;
     1139    return rc;
    11401140}
    11411141
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette