Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5efe1159 authored by Ravishankar Karkala Mallikarjunayya's avatar Ravishankar Karkala Mallikarjunayya Committed by Greg Kroah-Hartman
Browse files

Staging: comedi: Used unsigned int instead of unsigned issue in jr3_pci.c



This is a patch to the jr3_pci.c file that fixes up a
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
found by the checkpatch.pl tool.

Signed-off-by: default avatarRavishankar Karkala Mallikarjunayya <ravishankarkm32@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2c81ab43
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -231,7 +231,7 @@ static unsigned int jr3_pci_ai_read_chan(struct comedi_device *dev,


	if (chan < 56) {
	if (chan < 56) {
		unsigned int axis = chan % 8;
		unsigned int axis = chan % 8;
		unsigned filter = chan / 8;
		unsigned int filter = chan / 8;


		switch (axis) {
		switch (axis) {
		case 0:
		case 0:
@@ -690,7 +690,7 @@ static int jr3_pci_auto_attach(struct comedi_device *dev,
	if (sizeof(struct jr3_channel) != 0xc00) {
	if (sizeof(struct jr3_channel) != 0xc00) {
		dev_err(dev->class_dev,
		dev_err(dev->class_dev,
			"sizeof(struct jr3_channel) = %x [expected %x]\n",
			"sizeof(struct jr3_channel) = %x [expected %x]\n",
			(unsigned)sizeof(struct jr3_channel), 0xc00);
			(unsigned int)sizeof(struct jr3_channel), 0xc00);
		return -EINVAL;
		return -EINVAL;
	}
	}