Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8a4ba9cf
Commit
8a4ba9cf
authored
Jul 12, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jul 12, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: assorted drivers/* NULL noise removal
parent
d4439fce
Changes
30
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
61 additions
and
61 deletions
+61
-61
drivers/char/cyclades.c
drivers/char/cyclades.c
+7
-7
drivers/char/drm/drm_bufs.h
drivers/char/drm/drm_bufs.h
+3
-3
drivers/char/drm/drm_drv.h
drivers/char/drm/drm_drv.h
+1
-1
drivers/char/drm/radeon_mem.c
drivers/char/drm/radeon_mem.c
+7
-7
drivers/char/drm/radeon_state.c
drivers/char/drm/radeon_state.c
+1
-1
drivers/char/drm/sis_ds.c
drivers/char/drm/sis_ds.c
+2
-2
drivers/char/ipmi/ipmi_msghandler.c
drivers/char/ipmi/ipmi_msghandler.c
+1
-1
drivers/char/ipmi/ipmi_si_intf.c
drivers/char/ipmi/ipmi_si_intf.c
+1
-1
drivers/isdn/capi/capidrv.c
drivers/isdn/capi/capidrv.c
+1
-1
drivers/pci/hotplug/acpiphp_glue.c
drivers/pci/hotplug/acpiphp_glue.c
+1
-1
drivers/pci/hotplug/cpci_hotplug_core.c
drivers/pci/hotplug/cpci_hotplug_core.c
+2
-2
drivers/pci/hotplug/cpqphp_ctrl.c
drivers/pci/hotplug/cpqphp_ctrl.c
+1
-1
drivers/pci/hotplug/ibmphp_hpc.c
drivers/pci/hotplug/ibmphp_hpc.c
+1
-1
drivers/pci/hotplug/pciehp_ctrl.c
drivers/pci/hotplug/pciehp_ctrl.c
+1
-1
drivers/pci/hotplug/pciehp_hpc.c
drivers/pci/hotplug/pciehp_hpc.c
+4
-4
drivers/pci/hotplug/shpchp_ctrl.c
drivers/pci/hotplug/shpchp_ctrl.c
+1
-1
drivers/pci/hotplug/shpchp_hpc.c
drivers/pci/hotplug/shpchp_hpc.c
+3
-3
drivers/pcmcia/cardbus.c
drivers/pcmcia/cardbus.c
+1
-1
drivers/pnp/pnpbios/bioscalls.c
drivers/pnp/pnpbios/bioscalls.c
+3
-3
drivers/pnp/pnpbios/core.c
drivers/pnp/pnpbios/core.c
+2
-2
drivers/scsi/i60uscsi.c
drivers/scsi/i60uscsi.c
+1
-1
drivers/scsi/imm.c
drivers/scsi/imm.c
+1
-1
drivers/scsi/ppa.c
drivers/scsi/ppa.c
+1
-1
drivers/scsi/sr.c
drivers/scsi/sr.c
+1
-1
drivers/video/aty/mach64_cursor.c
drivers/video/aty/mach64_cursor.c
+1
-1
drivers/video/cirrusfb.c
drivers/video/cirrusfb.c
+1
-1
drivers/video/fbmem.c
drivers/video/fbmem.c
+1
-1
drivers/video/i810/i810_gtf.c
drivers/video/i810/i810_gtf.c
+1
-1
drivers/video/kyro/fbdev.c
drivers/video/kyro/fbdev.c
+1
-1
drivers/video/riva/riva_hw.c
drivers/video/riva/riva_hw.c
+8
-8
No files found.
drivers/char/cyclades.c
View file @
8a4ba9cf
...
...
@@ -721,7 +721,7 @@ static unsigned char *cy_isa_addresses[] = {
(
unsigned
char
*
)
0xDA000
,
(
unsigned
char
*
)
0xDC000
,
(
unsigned
char
*
)
0xDE000
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
};
#define NR_ISA_ADDRS (sizeof(cy_isa_addresses)/sizeof(unsigned char*))
...
...
@@ -2236,7 +2236,7 @@ shutdown(struct cyclades_port * info)
if
(
info
->
xmit_buf
){
unsigned
char
*
temp
;
temp
=
info
->
xmit_buf
;
info
->
xmit_buf
=
0
;
info
->
xmit_buf
=
NULL
;
free_page
((
unsigned
long
)
temp
);
}
cy_writeb
((
u_long
)
base_addr
+
(
CyCAR
<<
index
),
(
u_char
)
channel
);
...
...
@@ -2288,7 +2288,7 @@ shutdown(struct cyclades_port * info)
if
(
info
->
xmit_buf
){
unsigned
char
*
temp
;
temp
=
info
->
xmit_buf
;
info
->
xmit_buf
=
0
;
info
->
xmit_buf
=
NULL
;
free_page
((
unsigned
long
)
temp
);
}
...
...
@@ -2856,7 +2856,7 @@ cy_close(struct tty_struct *tty, struct file *filp)
tty
->
closing
=
0
;
info
->
event
=
0
;
info
->
tty
=
0
;
info
->
tty
=
NULL
;
if
(
info
->
blocked_open
)
{
CY_UNLOCK
(
info
,
flags
);
if
(
info
->
close_delay
)
{
...
...
@@ -4583,7 +4583,7 @@ cy_hangup(struct tty_struct *tty)
#ifdef CY_DEBUG_COUNT
printk
(
"cyc:cy_hangup (%d): setting count to 0
\n
"
,
current
->
pid
);
#endif
info
->
tty
=
0
;
info
->
tty
=
NULL
;
info
->
flags
&=
~
ASYNC_NORMAL_ACTIVE
;
wake_up_interruptible
(
&
info
->
open_wait
);
}
/* cy_hangup */
...
...
@@ -5471,7 +5471,7 @@ cy_init(void)
info
->
line
=
port
;
info
->
chip_rev
=
0
;
info
->
flags
=
STD_COM_FLAGS
;
info
->
tty
=
0
;
info
->
tty
=
NULL
;
if
(
mailbox
==
ZO_V1
)
info
->
xmit_fifo_size
=
CYZ_FIFO_SIZE
;
else
...
...
@@ -5533,7 +5533,7 @@ cy_init(void)
info
->
card
=
board
;
info
->
line
=
port
;
info
->
flags
=
STD_COM_FLAGS
;
info
->
tty
=
0
;
info
->
tty
=
NULL
;
info
->
xmit_fifo_size
=
CyMAX_CHAR_FIFO
;
info
->
cor1
=
CyPARITY_NONE
|
Cy_1_STOP
|
Cy_8_BITS
;
info
->
cor2
=
CyETC
;
...
...
drivers/char/drm/drm_bufs.h
View file @
8a4ba9cf
...
...
@@ -125,7 +125,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
return
-
EINVAL
;
}
map
->
mtrr
=
-
1
;
map
->
handle
=
0
;
map
->
handle
=
NULL
;
switch
(
map
->
type
)
{
case
_DRM_REGISTERS
:
...
...
@@ -468,7 +468,7 @@ int DRM(addbufs_agp)( struct inode *inode, struct file *filp,
buf
->
waiting
=
0
;
buf
->
pending
=
0
;
init_waitqueue_head
(
&
buf
->
dma_wait
);
buf
->
filp
=
0
;
buf
->
filp
=
NULL
;
buf
->
dev_priv_size
=
sizeof
(
DRIVER_BUF_PRIV_T
);
buf
->
dev_private
=
DRM
(
alloc
)(
sizeof
(
DRIVER_BUF_PRIV_T
),
...
...
@@ -692,7 +692,7 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp,
buf
->
waiting
=
0
;
buf
->
pending
=
0
;
init_waitqueue_head
(
&
buf
->
dma_wait
);
buf
->
filp
=
0
;
buf
->
filp
=
NULL
;
buf
->
dev_priv_size
=
sizeof
(
DRIVER_BUF_PRIV_T
);
buf
->
dev_private
=
DRM
(
alloc
)(
sizeof
(
DRIVER_BUF_PRIV_T
),
...
...
drivers/char/drm/drm_drv.h
View file @
8a4ba9cf
...
...
@@ -532,7 +532,7 @@ static int DRM(takedown)( drm_device_t *dev )
#endif
if
(
dev
->
lock
.
hw_lock
)
{
dev
->
sigdata
.
lock
=
dev
->
lock
.
hw_lock
=
NULL
;
/* SHM removed */
dev
->
lock
.
filp
=
0
;
dev
->
lock
.
filp
=
NULL
;
wake_up_interruptible
(
&
dev
->
lock
.
lock_queue
);
}
up
(
&
dev
->
struct_sem
);
...
...
drivers/char/drm/radeon_mem.c
View file @
8a4ba9cf
...
...
@@ -49,7 +49,7 @@ static struct mem_block *split_block(struct mem_block *p, int start, int size,
goto
out
;
newblock
->
start
=
start
;
newblock
->
size
=
p
->
size
-
(
start
-
p
->
start
);
newblock
->
filp
=
0
;
newblock
->
filp
=
NULL
;
newblock
->
next
=
p
->
next
;
newblock
->
prev
=
p
;
p
->
next
->
prev
=
newblock
;
...
...
@@ -65,7 +65,7 @@ static struct mem_block *split_block(struct mem_block *p, int start, int size,
goto
out
;
newblock
->
start
=
start
+
size
;
newblock
->
size
=
p
->
size
-
size
;
newblock
->
filp
=
0
;
newblock
->
filp
=
NULL
;
newblock
->
next
=
p
->
next
;
newblock
->
prev
=
p
;
p
->
next
->
prev
=
newblock
;
...
...
@@ -108,7 +108,7 @@ static struct mem_block *find_block( struct mem_block *heap, int start )
static
void
free_block
(
struct
mem_block
*
p
)
{
p
->
filp
=
0
;
p
->
filp
=
NULL
;
/* Assumes a single contiguous range. Needs a special filp in
* 'heap' to stop it being subsumed.
...
...
@@ -147,7 +147,7 @@ static int init_heap(struct mem_block **heap, int start, int size)
blocks
->
start
=
start
;
blocks
->
size
=
size
;
blocks
->
filp
=
0
;
blocks
->
filp
=
NULL
;
blocks
->
next
=
blocks
->
prev
=
*
heap
;
memset
(
*
heap
,
0
,
sizeof
(
**
heap
)
);
...
...
@@ -168,7 +168,7 @@ void radeon_mem_release( DRMFILE filp, struct mem_block *heap )
for
(
p
=
heap
->
next
;
p
!=
heap
;
p
=
p
->
next
)
{
if
(
p
->
filp
==
filp
)
p
->
filp
=
0
;
p
->
filp
=
NULL
;
}
/* Assumes a single contiguous range. Needs a special filp in
...
...
@@ -201,7 +201,7 @@ void radeon_mem_takedown( struct mem_block **heap )
}
DRM_FREE
(
*
heap
,
sizeof
(
**
heap
)
);
*
heap
=
0
;
*
heap
=
NULL
;
}
...
...
@@ -217,7 +217,7 @@ static struct mem_block **get_heap( drm_radeon_private_t *dev_priv,
case
RADEON_MEM_REGION_FB
:
return
&
dev_priv
->
fb_heap
;
default:
return
0
;
return
NULL
;
}
}
...
...
drivers/char/drm/radeon_state.c
View file @
8a4ba9cf
...
...
@@ -2310,7 +2310,7 @@ int radeon_cp_cmdbuf( DRM_IOCTL_ARGS )
drm_radeon_private_t
*
dev_priv
=
dev
->
dev_private
;
drm_file_t
*
filp_priv
;
drm_device_dma_t
*
dma
=
dev
->
dma
;
drm_buf_t
*
buf
=
0
;
drm_buf_t
*
buf
=
NULL
;
int
idx
;
drm_radeon_cmd_buffer_t
cmdbuf
;
drm_radeon_cmd_header_t
header
;
...
...
drivers/char/drm/sis_ds.c
View file @
8a4ba9cf
...
...
@@ -165,7 +165,7 @@ memHeap_t *mmInit(int ofs,
PMemBlock
blocks
;
if
(
size
<=
0
)
return
0
;
return
NULL
;
blocks
=
(
TMemBlock
*
)
DRM
(
calloc
)(
1
,
sizeof
(
TMemBlock
),
DRM_MEM_DRIVER
);
if
(
blocks
!=
NULL
)
{
...
...
@@ -174,7 +174,7 @@ memHeap_t *mmInit(int ofs,
blocks
->
free
=
1
;
return
(
memHeap_t
*
)
blocks
;
}
else
return
0
;
return
NULL
;
}
/* Checks if a pointer 'b' is part of the heap 'heap' */
...
...
drivers/char/ipmi/ipmi_msghandler.c
View file @
8a4ba9cf
...
...
@@ -3112,7 +3112,7 @@ static __init int ipmi_init_msghandler(void)
ipmi_interfaces
[
i
]
=
NULL
;
}
proc_ipmi_root
=
proc_mkdir
(
"ipmi"
,
0
);
proc_ipmi_root
=
proc_mkdir
(
"ipmi"
,
NULL
);
if
(
!
proc_ipmi_root
)
{
printk
(
"Unable to create IPMI proc dir"
);
return
-
ENOMEM
;
...
...
drivers/char/ipmi/ipmi_si_intf.c
View file @
8a4ba9cf
...
...
@@ -1781,7 +1781,7 @@ static int init_one_smi(int intf_num, struct smi_info **smi)
/* So we know not to free it unless we have allocated one. */
new_smi
->
intf
=
NULL
;
new_smi
->
si_sm
=
NULL
;
new_smi
->
handlers
=
0
;
new_smi
->
handlers
=
NULL
;
if
(
!
new_smi
->
irq_setup
)
{
new_smi
->
irq
=
irqs
[
intf_num
];
...
...
drivers/isdn/capi/capidrv.c
View file @
8a4ba9cf
...
...
@@ -1636,7 +1636,7 @@ static int capidrv_command(isdn_ctrl * c, capidrv_contr * card)
NULL
,
/* LLC */
NULL
,
/* HLC */
/* BChannelinformation */
isleasedline
?
AdditionalInfo
:
0
,
isleasedline
?
AdditionalInfo
:
NULL
,
NULL
,
/* Keypadfacility */
NULL
,
/* Useruserdata */
NULL
/* Facilitydataarray */
...
...
drivers/pci/hotplug/acpiphp_glue.c
View file @
8a4ba9cf
...
...
@@ -1227,7 +1227,7 @@ struct acpiphp_slot *get_slot_from_id(int id)
/* should never happen! */
err
(
"%s: no object for id %d
\n
"
,
__FUNCTION__
,
id
);
WARN_ON
(
1
);
return
0
;
return
NULL
;
}
...
...
drivers/pci/hotplug/cpci_hotplug_core.c
View file @
8a4ba9cf
...
...
@@ -614,9 +614,9 @@ cpci_start_thread(void)
thread_finished
=
0
;
if
(
controller
->
irq
)
{
pid
=
kernel_thread
(
event_thread
,
0
,
0
);
pid
=
kernel_thread
(
event_thread
,
NULL
,
0
);
}
else
{
pid
=
kernel_thread
(
poll_thread
,
0
,
0
);
pid
=
kernel_thread
(
poll_thread
,
NULL
,
0
);
}
if
(
pid
<
0
)
{
err
(
"Can't start up our thread"
);
...
...
drivers/pci/hotplug/cpqphp_ctrl.c
View file @
8a4ba9cf
...
...
@@ -1829,7 +1829,7 @@ int cpqhp_event_start_thread(void)
init_MUTEX_LOCKED
(
&
event_exit
);
event_finished
=
0
;
pid
=
kernel_thread
(
event_thread
,
0
,
0
);
pid
=
kernel_thread
(
event_thread
,
NULL
,
0
);
if
(
pid
<
0
)
{
err
(
"Can't start up our event thread
\n
"
);
return
-
1
;
...
...
drivers/pci/hotplug/ibmphp_hpc.c
View file @
8a4ba9cf
...
...
@@ -1081,7 +1081,7 @@ int __init ibmphp_hpc_start_poll_thread (void)
debug
(
"%s - Entry
\n
"
,
__FUNCTION__
);
tid_poll
=
kernel_thread
(
hpc_poll_thread
,
0
,
0
);
tid_poll
=
kernel_thread
(
hpc_poll_thread
,
NULL
,
0
);
if
(
tid_poll
<
0
)
{
err
(
"%s - Error, thread not started
\n
"
,
__FUNCTION__
);
rc
=
-
1
;
...
...
drivers/pci/hotplug/pciehp_ctrl.c
View file @
8a4ba9cf
...
...
@@ -1454,7 +1454,7 @@ int pciehp_event_start_thread(void)
event_finished
=
0
;
init_MUTEX_LOCKED
(
&
event_semaphore
);
pid
=
kernel_thread
(
event_thread
,
0
,
0
);
pid
=
kernel_thread
(
event_thread
,
NULL
,
0
);
if
(
pid
<
0
)
{
err
(
"Can't start up our event thread
\n
"
);
...
...
drivers/pci/hotplug/pciehp_hpc.c
View file @
8a4ba9cf
...
...
@@ -237,8 +237,8 @@ struct php_ctlr_state_s {
static
spinlock_t
hpc_event_lock
;
DEFINE_DBG_BUFFER
/* Debug string buffer for entire HPC defined here */
static
struct
php_ctlr_state_s
*
php_ctlr_list_head
=
0
;
/* HPC state linked list */
static
int
ctlr_seq_num
=
0
;
/* Controller sequence # */
static
struct
php_ctlr_state_s
*
php_ctlr_list_head
;
/* HPC state linked list */
static
int
ctlr_seq_num
;
/* Controller sequence # */
static
spinlock_t
list_lock
;
static
irqreturn_t
pcie_isr
(
int
IRQ
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
...
...
@@ -744,7 +744,7 @@ static void hpc_release_ctlr(struct controller *ctrl)
}
}
if
(
php_ctlr
->
pci_dev
)
php_ctlr
->
pci_dev
=
0
;
php_ctlr
->
pci_dev
=
NULL
;
spin_lock
(
&
list_lock
);
p
=
php_ctlr_list_head
;
...
...
@@ -1467,7 +1467,7 @@ int pcie_init(struct controller * ctrl,
if
(
php_ctlr_list_head
==
0
)
{
php_ctlr_list_head
=
php_ctlr
;
p
=
php_ctlr_list_head
;
p
->
pnext
=
0
;
p
->
pnext
=
NULL
;
}
else
{
p
=
php_ctlr_list_head
;
...
...
drivers/pci/hotplug/shpchp_ctrl.c
View file @
8a4ba9cf
...
...
@@ -1890,7 +1890,7 @@ int shpchp_event_start_thread (void)
event_finished
=
0
;
init_MUTEX_LOCKED
(
&
event_semaphore
);
pid
=
kernel_thread
(
event_thread
,
0
,
0
);
pid
=
kernel_thread
(
event_thread
,
NULL
,
0
);
if
(
pid
<
0
)
{
err
(
"Can't start up our event thread
\n
"
);
...
...
drivers/pci/hotplug/shpchp_hpc.c
View file @
8a4ba9cf
...
...
@@ -228,7 +228,7 @@
static
spinlock_t
hpc_event_lock
;
DEFINE_DBG_BUFFER
/* Debug string buffer for entire HPC defined here */
static
struct
php_ctlr_state_s
*
php_ctlr_list_head
=
0
;
/* HPC state linked list */
static
struct
php_ctlr_state_s
*
php_ctlr_list_head
;
/* HPC state linked list */
static
int
ctlr_seq_num
=
0
;
/* Controller sequenc # */
static
spinlock_t
list_lock
;
...
...
@@ -799,7 +799,7 @@ static void hpc_release_ctlr(struct controller *ctrl)
iounmap
(
php_ctlr
->
creg
);
release_mem_region
(
pci_resource_start
(
php_ctlr
->
pci_dev
,
0
),
pci_resource_len
(
php_ctlr
->
pci_dev
,
0
));
dbg
(
"%s: before calling iounmap & release_mem_region
\n
"
,
__FUNCTION__
);
php_ctlr
->
pci_dev
=
0
;
php_ctlr
->
pci_dev
=
NULL
;
}
spin_lock
(
&
list_lock
);
...
...
@@ -1572,7 +1572,7 @@ int shpc_init(struct controller * ctrl,
if
(
php_ctlr_list_head
==
0
)
{
php_ctlr_list_head
=
php_ctlr
;
p
=
php_ctlr_list_head
;
p
->
pnext
=
0
;
p
->
pnext
=
NULL
;
}
else
{
p
=
php_ctlr_list_head
;
...
...
drivers/pcmcia/cardbus.c
View file @
8a4ba9cf
...
...
@@ -118,7 +118,7 @@ static void cb_release_cis_mem(struct pcmcia_socket * s)
cs_dbg
(
s
,
1
,
"cb_release_cis_mem()
\n
"
);
iounmap
(
s
->
cb_cis_virt
);
s
->
cb_cis_virt
=
NULL
;
s
->
cb_cis_res
=
0
;
s
->
cb_cis_res
=
NULL
;
}
}
...
...
drivers/pnp/pnpbios/bioscalls.c
View file @
8a4ba9cf
...
...
@@ -260,7 +260,7 @@ static int __pnp_bios_dev_node_info(struct pnp_dev_node_info *data)
if
(
!
pnp_bios_present
())
return
PNP_FUNCTION_NOT_SUPPORTED
;
status
=
call_pnp_bios
(
PNP_GET_NUM_SYS_DEV_NODES
,
0
,
PNP_TS1
,
2
,
PNP_TS1
,
PNP_DS
,
0
,
0
,
data
,
sizeof
(
struct
pnp_dev_node_info
),
0
,
0
);
data
,
sizeof
(
struct
pnp_dev_node_info
),
NULL
,
0
);
data
->
no_nodes
&=
0xff
;
return
status
;
}
...
...
@@ -323,7 +323,7 @@ static int __pnp_bios_set_dev_node(u8 nodenum, char boot, struct pnp_bios_node *
if
(
!
boot
&&
pnpbios_dont_use_current_config
)
return
PNP_FUNCTION_NOT_SUPPORTED
;
status
=
call_pnp_bios
(
PNP_SET_SYS_DEV_NODE
,
nodenum
,
0
,
PNP_TS1
,
boot
?
2
:
1
,
PNP_DS
,
0
,
0
,
data
,
65536
,
0
,
0
);
data
,
65536
,
NULL
,
0
);
return
status
;
}
...
...
@@ -381,7 +381,7 @@ int pnp_bios_dock_station_info(struct pnp_docking_station_info *data)
if
(
!
pnp_bios_present
())
return
PNP_FUNCTION_NOT_SUPPORTED
;
status
=
call_pnp_bios
(
PNP_GET_DOCKING_STATION_INFORMATION
,
0
,
PNP_TS1
,
PNP_DS
,
0
,
0
,
0
,
0
,
data
,
sizeof
(
struct
pnp_docking_station_info
),
0
,
0
);
data
,
sizeof
(
struct
pnp_docking_station_info
),
NULL
,
0
);
return
status
;
}
...
...
drivers/pnp/pnpbios/core.c
View file @
8a4ba9cf
...
...
@@ -130,7 +130,7 @@ static int pnp_dock_event(int dock, struct pnp_docking_station_info *info)
/* only one standardized param to hotplug command: type */
argv
[
0
]
=
hotplug_path
;
argv
[
1
]
=
"dock"
;
argv
[
2
]
=
0
;
argv
[
2
]
=
NULL
;
/* minimal command environment */
envp
[
i
++
]
=
"HOME=/"
;
...
...
@@ -153,7 +153,7 @@ static int pnp_dock_event(int dock, struct pnp_docking_station_info *info)
envp
[
i
++
]
=
scratch
;
scratch
+=
sprintf
(
scratch
,
"DOCK=%x/%x/%x"
,
info
->
location_id
,
info
->
serial
,
info
->
capabilities
);
envp
[
i
]
=
0
;
envp
[
i
]
=
NULL
;
value
=
call_usermodehelper
(
argv
[
0
],
argv
,
envp
,
0
);
kfree
(
buf
);
...
...
drivers/scsi/i60uscsi.c
View file @
8a4ba9cf
...
...
@@ -621,7 +621,7 @@ int orc_device_reset(ORC_HCS * pHCB, Scsi_Cmnd *SCpnt, unsigned int target)
pScb
->
SCB_XferLen
=
0
;
pScb
->
SCB_SGLen
=
0
;
pVirEscb
->
SCB_Srb
=
0
;
pVirEscb
->
SCB_Srb
=
NULL
;
pVirEscb
->
SCB_Srb
=
SCpnt
;
orc_exec_scb
(
pHCB
,
pScb
);
/* Start execute SCB */
spin_unlock_irqrestore
(
&
(
pHCB
->
BitAllocFlagLock
),
flags
);
...
...
drivers/scsi/imm.c
View file @
8a4ba9cf
...
...
@@ -793,7 +793,7 @@ static void imm_interrupt(void *data)
imm_pb_dismiss
(
dev
);
spin_lock_irqsave
(
host
->
host_lock
,
flags
);
dev
->
cur_cmd
=
0
;
dev
->
cur_cmd
=
NULL
;
cmd
->
scsi_done
(
cmd
);
spin_unlock_irqrestore
(
host
->
host_lock
,
flags
);
return
;
...
...
drivers/scsi/ppa.c
View file @
8a4ba9cf
...
...
@@ -682,7 +682,7 @@ static void ppa_interrupt(void *data)
ppa_pb_dismiss
(
dev
);
dev
->
cur_cmd
=
0
;
dev
->
cur_cmd
=
NULL
;
cmd
->
scsi_done
(
cmd
);
}
...
...
drivers/scsi/sr.c
View file @
8a4ba9cf
...
...
@@ -183,7 +183,7 @@ int sr_media_change(struct cdrom_device_info *cdi, int slot)
return
-
EINVAL
;
}
retval
=
scsi_ioctl
(
cd
->
device
,
SCSI_IOCTL_TEST_UNIT_READY
,
0
);
retval
=
scsi_ioctl
(
cd
->
device
,
SCSI_IOCTL_TEST_UNIT_READY
,
NULL
);
if
(
retval
)
{
/* Unable to test, unit probably not ready. This usually
* means there is no disc in the drive. Mark as changed,
...
...
drivers/video/aty/mach64_cursor.c
View file @
8a4ba9cf
...
...
@@ -182,7 +182,7 @@ struct aty_cursor *__init aty_init_cursor(struct fb_info *info)
cursor
=
kmalloc
(
sizeof
(
struct
aty_cursor
),
GFP_ATOMIC
);
if
(
!
cursor
)
return
0
;
return
NULL
;
memset
(
cursor
,
0
,
sizeof
(
*
cursor
));
info
->
fix
.
smem_len
-=
PAGE_SIZE
;
...
...
drivers/video/cirrusfb.c
View file @
8a4ba9cf
...
...
@@ -2199,7 +2199,7 @@ static struct cirrusfb_info *cirrusfb_pci_setup (struct pci_dev *pdev,
}
else
{
DPRINTK
(
"Attempt to get PCI info for Cirrus Graphics Card
\n
"
);
get_pci_addrs
(
pdev
,
&
board_addr
,
&
cinfo
->
fbregs_phys
);
cinfo
->
regbase
=
0
;
/* FIXME: this forces VGA. alternatives? */
cinfo
->
regbase
=
NULL
;
/* FIXME: this forces VGA. alternatives? */
}
DPRINTK
(
"Board address: 0x%lx, register address: 0x%lx
\n
"
,
board_addr
,
cinfo
->
fbregs_phys
);
...
...
drivers/video/fbmem.c
View file @
8a4ba9cf
...
...
@@ -1459,7 +1459,7 @@ fbmem_init(void)
{
int
i
;
create_proc_read_entry
(
"fb"
,
0
,
0
,
fbmem_read_proc
,
NULL
);
create_proc_read_entry
(
"fb"
,
0
,
NULL
,
fbmem_read_proc
,
NULL
);
devfs_mk_dir
(
"fb"
);
if
(
register_chrdev
(
FB_MAJOR
,
"fb"
,
&
fb_fops
))
...
...
drivers/video/i810/i810_gtf.c
View file @
8a4ba9cf
...
...
@@ -222,7 +222,7 @@ void i810fb_fill_var_timings(struct fb_var_screeninfo *var) { }
u32
i810_get_watermark
(
const
struct
fb_var_screeninfo
*
var
,
struct
i810fb_par
*
par
)
{
struct
wm_info
*
wmark
=
0
;
struct
wm_info
*
wmark
=
NULL
;
u32
i
,
size
=
0
,
pixclock
,
wm_best
=
0
,
min
,
diff
;
if
(
par
->
mem_freq
==
100
)
{
...
...
drivers/video/kyro/fbdev.c
View file @
8a4ba9cf
...
...
@@ -84,7 +84,7 @@ typedef struct {
}
device_info_t
;
/* global graphics card info structure (one per card) */
static
device_info_t
deviceInfo
=
{
0
}
;
static
device_info_t
deviceInfo
;
static
char
*
mode_option
__initdata
=
NULL
;
static
int
nopan
__initdata
=
0
;
...
...
drivers/video/riva/riva_hw.c
View file @
8a4ba9cf
...
...
@@ -1344,7 +1344,7 @@ static void UpdateFifoState
{
case
NV_ARCH_04
:
LOAD_FIXED_STATE
(
nv4
,
FIFO
);
chip
->
Tri03
=
0
L
;
chip
->
Tri03
=
NUL
L
;
chip
->
Tri05
=
(
RivaTexturedTriangle05
*
)
&
(
chip
->
FIFO
[
0x0000E000
/
4
]);
break
;
case
NV_ARCH_10
:
...
...
@@ -1354,7 +1354,7 @@ static void UpdateFifoState
*/
LOAD_FIXED_STATE
(
nv10tri05
,
PGRAPH
);
LOAD_FIXED_STATE
(
nv10
,
FIFO
);
chip
->
Tri03
=
0
L
;
chip
->
Tri03
=
NUL
L
;
chip
->
Tri05
=
(
RivaTexturedTriangle05
*
)
&
(
chip
->
FIFO
[
0x0000E000
/
4
]);
break
;
}
...
...
@@ -1394,13 +1394,13 @@ static void LoadStateExt
case
32
:
LOAD_FIXED_STATE_32BPP
(
nv3
,
PRAMIN
);
LOAD_FIXED_STATE_32BPP
(
nv3
,
PGRAPH
);
chip
->
Tri03
=
0
L
;
chip
->
Tri03
=
NUL
L
;
break
;
case
8
:
default:
LOAD_FIXED_STATE_8BPP
(
nv3
,
PRAMIN
);
LOAD_FIXED_STATE_8BPP
(
nv3
,
PGRAPH
);
chip
->
Tri03
=
0
L
;
chip
->
Tri03
=
NUL
L
;
break
;
}
for
(
i
=
0x00000
;
i
<
0x00800
;
i
++
)
...
...
@@ -1438,13 +1438,13 @@ static void LoadStateExt
case
32
:
LOAD_FIXED_STATE_32BPP
(
nv4
,
PRAMIN
);
LOAD_FIXED_STATE_32BPP
(
nv4
,
PGRAPH
);
chip
->
Tri03
=
0
L
;
chip
->
Tri03
=
NUL
L
;
break
;
case
8
:
default:
LOAD_FIXED_STATE_8BPP
(
nv4
,
PRAMIN
);
LOAD_FIXED_STATE_8BPP
(
nv4
,
PGRAPH
);
chip
->
Tri03
=
0
L
;
chip
->
Tri03
=
NUL
L
;
break
;
}
chip
->
PGRAPH
[
0x00000640
/
4
]
=
state
->
offset0
;
...
...
@@ -1483,13 +1483,13 @@ static void LoadStateExt
case
32
:
LOAD_FIXED_STATE_32BPP
(
nv10
,
PRAMIN
);
LOAD_FIXED_STATE_32BPP
(
nv10
,
PGRAPH
);
chip
->
Tri03
=
0
L
;
chip
->
Tri03
=
NUL
L
;
break
;
case
8
:
default:
LOAD_FIXED_STATE_8BPP
(
nv10
,
PRAMIN
);
LOAD_FIXED_STATE_8BPP
(
nv10
,
PGRAPH
);
chip
->
Tri03
=
0
L
;
chip
->
Tri03
=
NUL
L
;
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment