From: Jiri Pirko <j...@resnulli.us> Date: Tue, 7 Feb 2017 17:27:47 +0100
> From: Jiri Pirko <j...@mellanox.com> > > This fixes an issue reported by smatch: > mlxsw_sp_acl_tcam_chunk_create() warn: impossible condition '(priority == > (-1)) => (0-u32max == u64max)' > > Reported-by: Or Gerlitz <ogerl...@mellanox.com> > Reported-by: Ido Schimmel <ido...@mellanox.com> > Reported-by: Dan Carpenter <dan.carpen...@oracle.com> > Fixes: 22a677661f56 ("mlxsw: spectrum: Introduce ACL core with simple TCAM > implementation") > Signed-off-by: Jiri Pirko <j...@mellanox.com> > Acked-by: Ido Schimmel <ido...@mellanox.com> > --- > v1->v2: > - using (~0u) as suggested by David Laight Applied.