Skip to content

Commit

Permalink
sound/oss/sb_common.c: fix casting warning
Browse files Browse the repository at this point in the history
sound/oss/sb_common.c: In function 'probe_sbmpu':
sound/oss/sb_common.c:1231: warning: cast to pointer from integer of different size

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeff Garzik authored and Linus Torvalds committed Feb 6, 2008
1 parent ffce7a8 commit 73de76a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/oss/sb_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,8 @@ int probe_sbmpu(struct address_info *hw_config, struct module *owner)
}
attach_mpu401(hw_config, owner);
if (last_sb->irq == -hw_config->irq)
last_sb->midi_irq_cookie=(void *)hw_config->slots[1];
last_sb->midi_irq_cookie =
(void *)(long) hw_config->slots[1];
return 1;
}
#endif
Expand Down

0 comments on commit 73de76a

Please sign in to comment.