Date: Sat, 3 Sep 2016 04:21:40 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r305321 - head/sys/powerpc/mpc85xx Message-ID: <201609030421.u834Lemo067161@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhibbits Date: Sat Sep 3 04:21:40 2016 New Revision: 305321 URL: https://svnweb.freebsd.org/changeset/base/305321 Log: Return a NULL pointer (0 vm_offset) on error in map_dcsr(). mpc85xx_map_dcsr() returns a vm_offset_t, not an error code. Follow-up to r304069. Modified: head/sys/powerpc/mpc85xx/mpc85xx.c Modified: head/sys/powerpc/mpc85xx/mpc85xx.c ============================================================================== --- head/sys/powerpc/mpc85xx/mpc85xx.c Sat Sep 3 04:09:03 2016 (r305320) +++ head/sys/powerpc/mpc85xx/mpc85xx.c Sat Sep 3 04:21:40 2016 (r305321) @@ -367,7 +367,7 @@ moveon: err = fdt_get_range(node, 0, &b, &s); if (err != 0) - return (err); + return (0); law_enable(OCP85XX_TGTIF_DCSR, b, 0x400000); return pmap_early_io_map(b, 0x400000);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609030421.u834Lemo067161>