From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Hershberger Date: Tue, 4 Apr 2017 12:53:23 -0500 Subject: [U-Boot] [PATCHv2] net: zynq_gem: Do not return -ENOSYS on success In-Reply-To: <20170403141853.11574-1-oliver@schinagl.nl> References: <20170403141853.11574-1-oliver@schinagl.nl> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Apr 3, 2017 at 9:18 AM, Olliver Schinagl wrote: > > The .read_rom_hwaddr net_ops hook does not check the return value, which > is why it was never caught that we are currently returning 0 if the > read_rom_hwaddr function return -ENOSYS and -ENOSYS otherwise. > > In this case we can simplify this by just returning the result of the > function. > > Signed-off-by: Olliver Schinagl Acked-by: Joe Hershberger