commit | 092248aa326794ce758b7a4bb60827b661abafa8 | [log] [tgz] |
---|---|---|
author | Geert Uytterhoeven <geert+renesas@glider.be> | Fri Aug 21 20:02:41 2015 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Oct 04 17:33:48 2015 +0100 |
tree | 73a4070e42b796bc822d918f4d24bc21a8bad08f | |
parent | 8e14ba8f8b733840659d79e38758fb2b6c765dc5 [diff] |
serial: sh-sci: Use min_t()/max_t() instead of casts When comparing differently sized types, it's better to use min_t()/max_t() than adding casts. Also use "unsigned int" instead of "int", as that's the right type for the length of an SG entry. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>