Changeset 7fa8589 in mainline for uspace/lib/c/generic/clipboard.c


Ignore:
Timestamp:
2020-01-09T01:04:58Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
bcd7775
Parents:
76c8209
git-author:
Matthieu Riolo <matthieu.riolo@…> (2020-01-05 20:21:10)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2020-01-09 01:04:58)
Message:

Removing unneeded casts from errno_t to errno_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/clipboard.c

    r76c8209 r7fa8589  
    108108                clip_exchange_end(exch);
    109109
    110                 return (errno_t) rc;
     110                return rc;
    111111        } else {
    112112                async_exch_t *exch = clip_exchange_begin();
     
    120120                        async_wait_for(req, &rc_orig);
    121121                        if (rc_orig == EOK)
    122                                 return (errno_t) rc;
     122                                return rc;
    123123                        else
    124                                 return (errno_t) rc_orig;
     124                                return rc_orig;
    125125                }
    126126
    127127                async_wait_for(req, &rc);
    128128
    129                 return (errno_t) rc;
     129                return rc;
    130130        }
    131131}
     
    153153
    154154                if (rc != EOK)
    155                         return (errno_t) rc;
     155                        return rc;
    156156
    157157                char *sbuf;
     
    176176                        clip_exchange_end(exch);
    177177
    178                         if ((errno_t) rc == EOVERFLOW) {
     178                        if (rc == EOVERFLOW) {
    179179                                /*
    180180                                 * The data in the clipboard has changed since
     
    188188                                async_wait_for(req, &rc_orig);
    189189                                if (rc_orig == EOK)
    190                                         return (errno_t) rc;
     190                                        return rc;
    191191                                else
    192                                         return (errno_t) rc_orig;
     192                                        return rc_orig;
    193193                        }
    194194
Note: See TracChangeset for help on using the changeset viewer.