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

Commit b4482a4b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

more trivial signedness fixes in drivers

parent 64a6f950
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -362,7 +362,7 @@ static unsigned long write_video(const char *buffer, unsigned long count)
	int crt_out = -1;
	int crt_out = -1;
	int tv_out = -1;
	int tv_out = -1;
	u32 hci_result;
	u32 hci_result;
	int video_out;
	u32 video_out;


	/* scan expression.  Multiple expressions may be delimited with ;
	/* scan expression.  Multiple expressions may be delimited with ;
	 *
	 *
+1 −1
Original line number Original line Diff line number Diff line
@@ -1122,7 +1122,7 @@ static void __devinit piix_init_sata_map(struct pci_dev *pdev,
					 const struct piix_map_db *map_db)
					 const struct piix_map_db *map_db)
{
{
	struct piix_host_priv *hpriv = pinfo[0].private_data;
	struct piix_host_priv *hpriv = pinfo[0].private_data;
	const unsigned int *map;
	const int *map;
	int i, invalid_map = 0;
	int i, invalid_map = 0;
	u8 map_value;
	u8 map_value;


+1 −1
Original line number Original line Diff line number Diff line
@@ -505,7 +505,7 @@ static int svia_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
	int rc;
	int rc;
	struct ata_host *host;
	struct ata_host *host;
	int board_id = (int) ent->driver_data;
	int board_id = (int) ent->driver_data;
	const int *bar_sizes;
	const unsigned *bar_sizes;


	if (!printed_version++)
	if (!printed_version++)
		dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n");
		dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n");
+1 −1
Original line number Original line Diff line number Diff line
@@ -1295,7 +1295,7 @@ static const struct atmdev_ops ops = {


static void __devinit undocumented_pci_fix (struct pci_dev *pdev)
static void __devinit undocumented_pci_fix (struct pci_dev *pdev)
{
{
	int tint;
	u32 tint;


	/* The Windows driver says: */
	/* The Windows driver says: */
	/* Switch off FireStream Retry Limit Threshold 
	/* Switch off FireStream Retry Limit Threshold 
+1 −1
Original line number Original line Diff line number Diff line
@@ -3101,7 +3101,7 @@ static void cciss_getgeometry(int cntl_num)
	int i;
	int i;
	int listlength = 0;
	int listlength = 0;
	__u32 lunid = 0;
	__u32 lunid = 0;
	int block_size;
	unsigned block_size;
	sector_t total_size;
	sector_t total_size;


	ld_buff = kzalloc(sizeof(ReportLunData_struct), GFP_KERNEL);
	ld_buff = kzalloc(sizeof(ReportLunData_struct), GFP_KERNEL);
Loading