diff mbox

IB/qib: fix powerpc compile warnings

Message ID 20100526184205.11285.79404.stgit@chromite.mv.qlogic.com (mailing list archive)
State Changes Requested, archived
Headers show

Commit Message

Ralph Campbell May 26, 2010, 6:42 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c
index 7554704..8a354f7 100644
--- a/drivers/infiniband/hw/qib/qib_fs.c
+++ b/drivers/infiniband/hw/qib/qib_fs.c
@@ -143,7 +143,7 @@  static const struct file_operations driver_ops[] = {
 static ssize_t dev_counters_read(struct file *file, char __user *buf,
 				 size_t count, loff_t *ppos)
 {
-	u64 *counters;
+	u64 *counters = NULL;
 	struct qib_devdata *dd = private2dd(file);
 
 	return simple_read_from_buffer(buf, count, ppos, counters,
@@ -154,7 +154,7 @@  static ssize_t dev_counters_read(struct file *file, char __user *buf,
 static ssize_t dev_names_read(struct file *file, char __user *buf,
 			      size_t count, loff_t *ppos)
 {
-	char *names;
+	char *names = NULL;
 	struct qib_devdata *dd = private2dd(file);
 
 	return simple_read_from_buffer(buf, count, ppos, names,
@@ -175,7 +175,7 @@  static const struct file_operations cntr_ops[] = {
 static ssize_t portnames_read(struct file *file, char __user *buf,
 			      size_t count, loff_t *ppos)
 {
-	char *names;
+	char *names = NULL;
 	struct qib_devdata *dd = private2dd(file);
 
 	return simple_read_from_buffer(buf, count, ppos, names,
@@ -186,7 +186,7 @@  static ssize_t portnames_read(struct file *file, char __user *buf,
 static ssize_t portcntrs_1_read(struct file *file, char __user *buf,
 				size_t count, loff_t *ppos)
 {
-	u64 *counters;
+	u64 *counters = NULL;
 	struct qib_devdata *dd = private2dd(file);
 
 	return simple_read_from_buffer(buf, count, ppos, counters,
@@ -197,7 +197,7 @@  static ssize_t portcntrs_1_read(struct file *file, char __user *buf,
 static ssize_t portcntrs_2_read(struct file *file, char __user *buf,
 				size_t count, loff_t *ppos)
 {
-	u64 *counters;
+	u64 *counters = NULL;
 	struct qib_devdata *dd = private2dd(file);
 
 	return simple_read_from_buffer(buf, count, ppos, counters,