From: Darren Jenkins Date: Wed, 1 Mar 2006 00:59:20 +0000 (-0800) Subject: [PATCH] synclink_gt: make ->init_error signed X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2641dfd981e4a3eebf387f21cf10685af06e1641;p=openwrt%2Fstaging%2Fblogic.git [PATCH] synclink_gt: make ->init_error signed Examples of misuse are 3112 info->init_error = -1; 4440 if ((info->init_error = register_test(info)) < 0) { Signed-off-by: Darren Jenkins Signed-off-by: Alexey Dobriyan Acked-by: Paul Fulghum Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index a85a60a93deb..b046390cd256 100644 --- a/drivers/char/synclink_gt.c +++ b/drivers/char/synclink_gt.c @@ -306,7 +306,7 @@ struct slgt_info { int tx_active; unsigned char signals; /* serial signal states */ - unsigned int init_error; /* initialization error */ + int init_error; /* initialization error */ unsigned char *tx_buf; int tx_count;