|
@@ -441,7 +441,7 @@ int rio_request_inb_dbell(struct rio_mport *mport,
|
|
void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src,
|
|
void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src,
|
|
u16 dst, u16 info))
|
|
u16 dst, u16 info))
|
|
{
|
|
{
|
|
- int rc = 0;
|
|
|
|
|
|
+ int rc;
|
|
struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL);
|
|
struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL);
|
|
|
|
|
|
if (res) {
|
|
if (res) {
|
|
@@ -693,7 +693,7 @@ EXPORT_SYMBOL_GPL(rio_pw_enable);
|
|
int rio_map_inb_region(struct rio_mport *mport, dma_addr_t local,
|
|
int rio_map_inb_region(struct rio_mport *mport, dma_addr_t local,
|
|
u64 rbase, u32 size, u32 rflags)
|
|
u64 rbase, u32 size, u32 rflags)
|
|
{
|
|
{
|
|
- int rc = 0;
|
|
|
|
|
|
+ int rc;
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
|
|
|
|
if (!mport->ops->map_inb)
|
|
if (!mport->ops->map_inb)
|
|
@@ -737,7 +737,7 @@ EXPORT_SYMBOL_GPL(rio_unmap_inb_region);
|
|
int rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase,
|
|
int rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase,
|
|
u32 size, u32 rflags, dma_addr_t *local)
|
|
u32 size, u32 rflags, dma_addr_t *local)
|
|
{
|
|
{
|
|
- int rc = 0;
|
|
|
|
|
|
+ int rc;
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
|
|
|
|
if (!mport->ops->map_outb)
|
|
if (!mport->ops->map_outb)
|