Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • I ipipe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe
  • Repository
  • ipipe
  • drivers
  • char
  • isicom.c
Find file Blame History Permalink
  • Jiri Slaby's avatar
    [PATCH] Char: isicom, fix tty index check · 17c4edf0
    Jiri Slaby authored Dec 08, 2006
    
    
    Since tty->index is signed and may be < 0, we should assign this to int not
    uint.  There is already a check to ensure if it is not negative, but gcc
    complains with -W flag enabled and it is perfectly correct:
    drivers/char/isicom.c:953: warning: comparison of unsigned expression < 0
    is always false
    
    Fix this issue by converting `line' variable from uint to int.
    
    Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    17c4edf0

Imprint & Privacy Policy