Changeset 607b70f in rtems for cpukit/dtc


Ignore:
Timestamp:
Aug 22, 2016, 9:55:49 AM (3 years ago)
Author:
Masahiro Yamada <yamada.masahiro@…>
Branches:
master
Children:
f670acbf
Parents:
6112fb0b
git-author:
Masahiro Yamada <yamada.masahiro@…> (08/22/16 09:55:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/19/18 05:01:09)
Message:

libfdt: simplify fdt_del_mem_rsv()

The variable "err" is unneeded.

Signed-off-by: Masahiro Yamada <yamada.masahiro@…>
Signed-off-by: David Gibson <david@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/dtc/libfdt/fdt_rw.c

    r6112fb0b r607b70f  
    192192{
    193193        struct fdt_reserve_entry *re = _fdt_mem_rsv_w(fdt, n);
    194         int err;
    195194
    196195        FDT_RW_CHECK_HEADER(fdt);
     
    199198                return -FDT_ERR_NOTFOUND;
    200199
    201         err = _fdt_splice_mem_rsv(fdt, re, 1, 0);
    202         if (err)
    203                 return err;
    204         return 0;
     200        return _fdt_splice_mem_rsv(fdt, re, 1, 0);
    205201}
    206202
Note: See TracChangeset for help on using the changeset viewer.