Skip to content

Commit f2dd851

Browse files
committed
[media] fix a warning on avr32 arch
X-Patchwork-Delegate: m.chehab@samsung.com on avr32 arch, those warnings happen: drivers/media/firewire/firedtv-fw.c: In function 'node_update': drivers/media/firewire/firedtv-fw.c:329: warning: comparison is always true due to limited range of data type In this particular case, the signal is desired, as the isochannel var can be initalized with -1 inside the driver. So, change the type to s8, to avoid issues on archs where char is unsigned. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> Reviewed-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent 6ed9b28 commit f2dd851

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/firewire/firedtv.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct firedtv {
9696

9797
enum model_type type;
9898
char subunit;
99-
char isochannel;
99+
s8 isochannel;
100100
struct fdtv_ir_context *ir_context;
101101

102102
fe_sec_voltage_t voltage;

0 commit comments

Comments
 (0)