Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152160121
D15763.id43616.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
600 B
Referenced Files
None
Subscribers
None
D15763.id43616.diff
View Options
Index: sys/powerpc/powernv/opal_pci.c
===================================================================
--- sys/powerpc/powernv/opal_pci.c
+++ sys/powerpc/powernv/opal_pci.c
@@ -216,12 +216,15 @@
phandle_t node;
cell_t sizes[64]; /* Property is a list of bit-widths, up to 64-bits */
int count;
+ int cell_size;
node = ofw_bus_get_node(dev);
count = OF_getencprop(node, "ibm,supported-tce-sizes",
sizes, sizeof(sizes));
- if (count < sizeof(cell_t))
+ cell_size = sizeof(cell_t);
+
+ if (count < cell_size);
return OPAL_PCI_TCE_DEFAULT_SEG_SIZE;
count /= sizeof(cell_t);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 14, 3:42 AM (15 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31447052
Default Alt Text
D15763.id43616.diff (600 B)
Attached To
Mode
D15763: powerpc64: Avoid type promotion
Attached
Detach File
Event Timeline
Log In to Comment