Răsfoiți Sursa

gpu: host1x: channel: Use correct type

find_first_zero_bit() returns an unsigned long, so make the local
variable that stores the result the same type for consistency.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Thierry Reding 9 ani în urmă
părinte
comite
e18e33afa4
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      drivers/gpu/host1x/channel.c

+ 2 - 1
drivers/gpu/host1x/channel.c

@@ -85,7 +85,8 @@ struct host1x_channel *host1x_channel_request(struct device *dev)
 	struct host1x *host = dev_get_drvdata(dev->parent);
 	unsigned int max_channels = host->info->nb_channels;
 	struct host1x_channel *channel = NULL;
-	int index, err;
+	unsigned long index;
+	int err;
 
 	mutex_lock(&host->chlist_mutex);