[tty:tty-testing 16/24] drivers/usb/misc/sisusbvga/sisusb_con.c:852:8-9: WARNING: return of 0/1 in function 'sisusbcon_scroll_area' with return type bool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
head:   5131dcd7810806fe4ff81ca23dadb47921285e36
commit: d705ff38189fcfbbfa6aa97363d30c23348ad166 [16/24] tty: vt, cleanup and document con_scroll


coccinelle warnings: (new ones prefixed by >>)

>> drivers/usb/misc/sisusbvga/sisusb_con.c:852:8-9: WARNING: return of 0/1 in function 'sisusbcon_scroll_area' with return type bool

vim +/sisusbcon_scroll_area +852 drivers/usb/misc/sisusbvga/sisusb_con.c

1bbb4f20 Thomas Winischhofer 2005-08-29  836  			break;
1bbb4f20 Thomas Winischhofer 2005-08-29  837  
1bbb4f20 Thomas Winischhofer 2005-08-29  838  		case SM_DOWN:
1bbb4f20 Thomas Winischhofer 2005-08-29  839  			sisusbcon_memmovew(SISUSB_VADDR(0, t + lines),
1bbb4f20 Thomas Winischhofer 2005-08-29  840  					   SISUSB_VADDR(0, t),
1bbb4f20 Thomas Winischhofer 2005-08-29  841  					   (b - t - lines) * cols * 2);
1bbb4f20 Thomas Winischhofer 2005-08-29  842  			sisusbcon_memsetw(SISUSB_VADDR(0, t), eattr,
1bbb4f20 Thomas Winischhofer 2005-08-29  843  					  lines * cols * 2);
1bbb4f20 Thomas Winischhofer 2005-08-29  844  			break;
1bbb4f20 Thomas Winischhofer 2005-08-29  845  	}
1bbb4f20 Thomas Winischhofer 2005-08-29  846  
1bbb4f20 Thomas Winischhofer 2005-08-29  847  	sisusb_copy_memory(sisusb, (char *)SISUSB_VADDR(0, t),
3cc5be77 Jiri Slaby          2016-06-23  848  				(long)SISUSB_HADDR(0, t), length);
1bbb4f20 Thomas Winischhofer 2005-08-29  849  
2682d27c Arjan van de Ven    2006-03-28  850  	mutex_unlock(&sisusb->lock);
1bbb4f20 Thomas Winischhofer 2005-08-29  851  
1bbb4f20 Thomas Winischhofer 2005-08-29 @852  	return 1;
1bbb4f20 Thomas Winischhofer 2005-08-29  853  }
1bbb4f20 Thomas Winischhofer 2005-08-29  854  
1bbb4f20 Thomas Winischhofer 2005-08-29  855  /* Interface routine */
d705ff38 Jiri Slaby          2016-10-03  856  static bool
d705ff38 Jiri Slaby          2016-10-03  857  sisusbcon_scroll(struct vc_data *c, unsigned int t, unsigned int b,
d705ff38 Jiri Slaby          2016-10-03  858  		enum con_scroll dir, unsigned int lines)
1bbb4f20 Thomas Winischhofer 2005-08-29  859  {
1bbb4f20 Thomas Winischhofer 2005-08-29  860  	struct sisusb_usb_data *sisusb;

:::::: The code at line 852 was first introduced by commit
:::::: 1bbb4f2035d94d86e52e9b5341c142dcb39bb879 [PATCH] USB: sisusb[vga] update

:::::: TO: Thomas Winischhofer <thomas@xxxxxxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux