diff options
author | Ian Abbott | 2009-02-09 17:32:12 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2009-04-03 23:53:52 +0200 |
commit | 56d92c60e6dc708541711e9de4993e7d527d08e8 (patch) | |
tree | 9efc3e298473093f200fca1475e74d0bebfc98c8 /drivers/staging/comedi/comedi_fops.c | |
parent | Staging: comedi: Use explicit value for enumerated constant INSN_CONFIG_GET_H... (diff) | |
download | kernel-qcow2-linux-56d92c60e6dc708541711e9de4993e7d527d08e8.tar.gz kernel-qcow2-linux-56d92c60e6dc708541711e9de4993e7d527d08e8.tar.xz kernel-qcow2-linux-56d92c60e6dc708541711e9de4993e7d527d08e8.zip |
Staging: comedi: newer gcc warning fixes
Fix GCC warning in call to request_module(): "format not a string
literal and no format arguments".
From: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: David Schleef <ds@schleef.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
-rw-r--r-- | drivers/staging/comedi/comedi_fops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index fbd3d1c6c647..6867b0938e15 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c @@ -1757,7 +1757,6 @@ void do_become_nonbusy(comedi_device *dev, comedi_subdevice *s) static int comedi_open(struct inode *inode, struct file *file) { - char mod[32]; const unsigned minor = iminor(inode); struct comedi_device_file_info *dev_file_info = comedi_get_device_file_info(minor); @@ -1793,10 +1792,9 @@ static int comedi_open(struct inode *inode, struct file *file) dev->in_request_module = 1; - sprintf(mod, "char-major-%i-%i", COMEDI_MAJOR, dev->minor); #ifdef CONFIG_KMOD mutex_unlock(&dev->mutex); - request_module(mod); + request_module("char-major-%i-%i", COMEDI_MAJOR, dev->minor); mutex_lock(&dev->mutex); #endif |