[patch libnl] genl: genl_ctrl_grp_by_name: fix retval in case group id not found

Thomas Graf tgraf at infradead.org
Wed Aug 31 06:36:22 EDT 2011


On Wed, Aug 31, 2011 at 11:14:43AM +0200, Jiri Pirko wrote:
> Now the return value in case group id is not find is 0. Change it to
> return -NLE_OBJ_NOTFOUND which makes more sense. This should not break
> anything because genl_ctrl_grp_by_name is static and called only from
> genl_ctrl_resolve_grp. genl_ctrl_resolve_grp already might return
> -NLE_OBJ_NOTFOUND.
> 
> Signed-off-by: Jiri Pirko <jpirko at redhat.com>

Applied, thanks Jiri!



More information about the libnl mailing list