Discard a paranoid test in outb().

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4904 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-09-29 19:28:28 +00:00
1 parent f76d5c30fe
commit 9f3bc13b03
1 file changed
-8
-8
View File
@@ -2185,14 +2185,6 @@ sub inb
# Returns: -1 on failure, 0 on success.
sub outb
{
if ($_[1] > 0xff)
{
my ($package, $filename, $line, $sub) = caller(1);
print "\n*** Called outb with value=$_[1] from line $line\n",
"*** (in $sub). PLEASE REPORT!\n",
"*** Terminating.\n";
exit(-1);
}
my $towrite = pack "C", $_[1];
sysseek IOPORTS, $_[0], 0 or return -1;
my $nrchars = syswrite IOPORTS, $towrite, 1;